If you can see the header in a flask app served with gunicorn but not in the same app using waitress then the answer is likely related to the actual content of the request and header so you probably need to provide a reproducible example. I think the current dummy example you're showing is unlikely to be different. Obviously it's not the case that every header is ignored on waitress and works on gunicorn, it's related to the request content.
On Tue, Oct 15, 2019 at 4:37 PM 'Roman S' via pylons-discuss < pylons-discuss@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-discuss+unsubscr...@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 > <https://groups.google.com/d/msgid/pylons-discuss/c45a4c53-4d8d-41db-952e-f61914a01c76%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Michael -- 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-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwGruj-EWfV0FE5M-3bFgM5_S-8oK%3DdC3b%3Dthd9cTMqQsQ%40mail.gmail.com.