how do I allow a custom header in the request (retrieving it in a simple flask app)?
example:
curl -X GET --header 'Accept: application/json' --header 'SESSION_DATA: ...c2Vy...' http://localhost:8080/endpoint
waitress just ignores the header SESSION_DATA, whereby gunicorn e.g. allows it.
waitress==1.3.1
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/c45a4c53-4d8d-41db-952e-f61914a01c76%40googlegroups.com.
This is due to your custom header containing an underscore.See https://github.com/Pylons/waitress/issues/194 for more information.
Bert
On Oct 15, 2019, at 05:47, 'Roman S' via pylons-discuss <pylons-...@googlegroups.com> wrote:
hi all,how do I allow a custom header in the request (retrieving it in a simple flask app)?
example:
curl -X GET --header 'Accept: application/json' --header 'SESSION_DATA: ...c2Vy...' http://localhost:8080/endpoint
waitress just ignores the header
SESSION_DATA, whereby gunicorn e.g. allows it.
waitress==1.3.1
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-...@googlegroups.com.