As the title says I am trying to access a custom header via flask
@app.route("/test", methods=['POST']) def ticket(): odn_key = request.headers.get('HTTP_ODN_KEY') return odn_key
This works within my test environment (IDE) but I cannot seem to access those headers through gunicorn / flask.
I've read something about the header not being able to have underscores and that it replaces all hyphens with underscores. My test request (via postman) header is odn-key: 12345
Any help is appreciated!
Thanks, JH
1.4m articles
1.4m replys
5 comments
57.0k users