Skip to content

Commit

Permalink
frontend: decode bytes to string before sending header as string
Browse files Browse the repository at this point in the history
  • Loading branch information
nikromen committed Jan 20, 2025
1 parent ef42fb8 commit 4664dc0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def render_generate_repo_file_cached(copr_dir, name_release, arch=None):
dnf_copr_error = {"available chroots": available_chroots}
dnf_copr_error_data = json.dumps(dnf_copr_error).encode("utf-8")
dnf_copr_plugin_headers = {
"Copr-Error-Data": base64.b64encode(dnf_copr_error_data),
"Copr-Error-Data": base64.b64encode(dnf_copr_error_data).decode("utf-8"),
}
raise ObjectNotFound(html_error_msg, headers=dnf_copr_plugin_headers)

Expand Down

0 comments on commit 4664dc0

Please sign in to comment.