diff options
author | Andrew Godwin | 2022-11-16 21:12:28 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-16 21:12:28 -0700 |
commit | 1b52acdb56346d939eb2e26ff449697b52fa7142 (patch) | |
tree | 222e5a3de47db230c392f18ab983abe69eb94c5d /core | |
parent | 44af0d4c59eed1c3715e9044e75c159cfddf54cc (diff) | |
download | takahe-1b52acdb56346d939eb2e26ff449697b52fa7142.tar.gz takahe-1b52acdb56346d939eb2e26ff449697b52fa7142.tar.bz2 takahe-1b52acdb56346d939eb2e26ff449697b52fa7142.zip |
Domains management pages
Diffstat (limited to 'core')
-rw-r--r-- | core/signatures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/signatures.py b/core/signatures.py index 8b52c1a..d981f87 100644 --- a/core/signatures.py +++ b/core/signatures.py @@ -59,7 +59,7 @@ class HttpSignature: elif header_name == "content-type": value = request.META["CONTENT_TYPE"] else: - value = request.META[f"HTTP_{header_name.upper()}"] + value = request.META["HTTP_%s" % header_name.upper().replace("-", "_")] headers[header_name] = value return "\n".join(f"{name.lower()}: {value}" for name, value in headers.items()) |