Embassy icon indicating copy to clipboard operation
Embassy copied to clipboard

Added original request headers to the environ.

Open cianiandreadev opened this issue 6 years ago • 2 comments

The information regarding the request headers are currently lost and not accessible using the environ. This change will allow to check the original request headers in a later time by accessing to the environ dictionary.

cianiandreadev avatar Jul 05 '19 08:07 cianiandreadev

Additional comments:

  1. I decided to upstream this solution because I noticed that you modify the request header keys (dashes to underscore etc...) and this lead to issues if you want to access to these keys following standard formats.
  2. I just noticed that maybe a better name for the key would be embassy.request.headers or similar, instead of REQUEST_HEADERS. Feel free to propose your idea eventually :)

cianiandreadev avatar Jul 05 '19 09:07 cianiandreadev

Any news regarding this?

cianiandreadev avatar Jan 13 '20 10:01 cianiandreadev