fix: Remove headers
This commit is contained in:
parent
6b82cc7a69
commit
c042fe5908
1 changed files with 2 additions and 4 deletions
6
app.py
6
app.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue