Skip to content

add REQUEST_URI and RAW_REQUEST to environ#1419

Merged
davidism merged 1 commit into
masterfrom
environ-request-uri
Dec 10, 2018
Merged

add REQUEST_URI and RAW_REQUEST to environ#1419
davidism merged 1 commit into
masterfrom
environ-request-uri

Conversation

@davidism
Copy link
Copy Markdown
Member

@davidism davidism commented Dec 10, 2018

These non-standard but commonly implemented keys contain the raw request URI before percent-decoding. Gunicorn adds RAW_URI, mod_wsgi and uWSGI add REQUEST_URI. The development server and test client will add these keys, but nothing else is done with it. If you want to route based on this, you'll need to write some middleware to replace PATH_INFO.

Closes #766

These non-standard but commonly implemented keys contain the raw request
URI before percent-decoding.
@davidism davidism added this to the 0.15 milestone Dec 10, 2018
@davidism davidism merged commit 8190935 into master Dec 10, 2018
@davidism davidism deleted the environ-request-uri branch December 10, 2018 02:29
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raw request url path info

1 participant