This is due to your custom header containing an underscore.

See https://github.com/Pylons/waitress/issues/194 
<https://github.com/Pylons/waitress/issues/194> for more information.

Bert

> On Oct 15, 2019, at 05:47, 'Roman S' via pylons-discuss 
> <[email protected]> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/c45a4c53-4d8d-41db-952e-f61914a01c76%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/c45a4c53-4d8d-41db-952e-f61914a01c76%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/EF32599E-7F02-4081-9E70-F2FB9ECA345E%400x58.com.

Reply via email to