mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 07:12:20 -05:00
fix minor startup error
This commit is contained in:
@@ -81,6 +81,16 @@ class ResponseHeaderMiddleware(object):
|
||||
for key, value in headers
|
||||
if key.lower() not in ["server", "last-modified"]
|
||||
]
|
||||
headers = [
|
||||
(key, value)
|
||||
for key, value in headers
|
||||
if "werkzeug" not in value.lower()
|
||||
]
|
||||
|
||||
for key, value in headers:
|
||||
if key.lower() == "content-type" and "text/yaml" in value.lower():
|
||||
headers.pop("Content-Type")
|
||||
headers.append("Content-Type", "application/yaml")
|
||||
headers.append(("Server", "SecureServer"))
|
||||
return start_response(status, headers, exc_info)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user