fix: Remove headers

This commit is contained in:
Kumi 2024-11-25 17:42:50 +01:00
parent 6b82cc7a69
commit c042fe5908
Signed by: kumi
GPG key ID: ECBCC9082395383F

6
app.py
View file

@ -23,12 +23,10 @@ def proxy_fonts(path):
url = f"{FONT_URL}/{path}"
if query_string:
url += f"?{query_string}"
headers = {
key: value for (key, value) in request.headers.items() if key.lower() != "host"
"Accept-Encoding": "",
}
headers["Accept-Encoding"] = (
"" # Disable Accept-Encoding to avoid compressed responses
)
response = requests.get(url, headers=headers)