summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-16 21:12:28 -0700
committerAndrew Godwin2022-11-16 21:12:28 -0700
commit1b52acdb56346d939eb2e26ff449697b52fa7142 (patch)
tree222e5a3de47db230c392f18ab983abe69eb94c5d /core
parent44af0d4c59eed1c3715e9044e75c159cfddf54cc (diff)
downloadtakahe-1b52acdb56346d939eb2e26ff449697b52fa7142.tar.gz
takahe-1b52acdb56346d939eb2e26ff449697b52fa7142.tar.bz2
takahe-1b52acdb56346d939eb2e26ff449697b52fa7142.zip
Domains management pages
Diffstat (limited to 'core')
-rw-r--r--core/signatures.py2
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())