mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -05:00
fix minor startup error
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
from flask import abort, current_app, request
|
||||
from flask.wrappers import Request
|
||||
|
||||
from app.utils import hilite
|
||||
|
||||
TRACE_ID_HEADER = "X-B3-TraceId"
|
||||
SPAN_ID_HEADER = "X-B3-SpanId"
|
||||
PARENT_SPAN_ID_HEADER = "X-B3-ParentSpanId"
|
||||
@@ -79,10 +77,11 @@ class ResponseHeaderMiddleware(object):
|
||||
headers.append((SPAN_ID_HEADER, str(req.span_id)))
|
||||
|
||||
headers = [
|
||||
(key, value) for key, value in headers if key.lower() != "server"
|
||||
(key, value)
|
||||
for key, value in headers
|
||||
if key.lower() not in ["server", "last-modified"]
|
||||
]
|
||||
headers.append(("Server", "SecureServer"))
|
||||
print(hilite(f"HEADERS {headers}"))
|
||||
return start_response(status, headers, exc_info)
|
||||
|
||||
return self._app(environ, rewrite_response_headers)
|
||||
|
||||
Reference in New Issue
Block a user