summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rwxr-xr-xsearx/webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index f482d4a1a..906ec93e4 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1387,7 +1387,8 @@ def static_headers(headers: Headers, _path: str, _url: str) -> None:
headers['Cache-Control'] = 'public, max-age=30, stale-while-revalidate=60'
for header, value in settings['server']['default_http_headers'].items():
- headers[header] = value
+ # cast value to string, as WhiteNoise requires header values to be strings
+ headers[header] = str(value)
app.wsgi_app = WhiteNoise(