Skip to content

Commit

Permalink
revert to last good
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Feb 3, 2025
1 parent d935e4a commit 9933db8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion notifications_utils/request_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ def rewrite_response_headers(status, headers, exc_info=None):
if SPAN_ID_HEADER.lower() not in lower_existing_header_names:
headers.append((SPAN_ID_HEADER, str(req.span_id)))

print(headers)
headers = [
(key, value) for key, value in headers if key.lower() != "server"
]
headers.append(("Server", "SecureServer"))

return start_response(status, headers, exc_info)

return self._app(environ, rewrite_response_headers)
Expand Down

0 comments on commit 9933db8

Please sign in to comment.