Gunicorn request header filtering problem

use the following code to get the data in the request header, but cannot get the value (the client also uses access_token)

access_token=request.header.get_all("access_token")

use the following code to get the data in the request header, and you can get the value (the client also uses access-token)

access_token=request.header.get_all("access-token")

does this require additional configuration?

personally, I think it should be a configuration similar to nginx underscores_in_headers , but no configuration similar to gunicorn was found.

Apr.14,2022

gunicorn does not filter request headers, so performing which nginx should find something new.

Menu