You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
When I run my Flask app with Pulsar, I get a lot of log warnings like this:
13:28:02 [p=3204, t=4416, WARNING, pulsar.wsgi-worker] Application passing hop header "Date"
I get a new log entry each time Flask serves a static file simply because the reponse includes this header. Looking into pulsar/apps/wsgi/utils.py we can see that Pulsar treats the following header as hop-by-hop headers:
The following HTTP/1.1 headers are hop-by-hop headers:
- Connection
- Keep-Alive
- Proxy-Authenticate
- Proxy-Authorization
- TE
- Trailers
- Transfer-Encoding
- Upgrade
So server and date should probably be removed from HOP_HEADERS because it is against the spec and because frameworks like Flask which use the Date header will pollute the log file.
The text was updated successfully, but these errors were encountered:
When I run my Flask app with Pulsar, I get a lot of log warnings like this:
13:28:02 [p=3204, t=4416, WARNING, pulsar.wsgi-worker] Application passing hop header "Date"
I get a new log entry each time Flask serves a static file simply because the reponse includes this header. Looking into
pulsar/apps/wsgi/utils.py
we can see that Pulsar treats the following header as hop-by-hop headers:However, that seems to be in conflict with the official HTTP/1.1 RFC:
So
server
anddate
should probably be removed from HOP_HEADERS because it is against the spec and because frameworks like Flask which use theDate
header will pollute the log file.The text was updated successfully, but these errors were encountered: