-
Notifications
You must be signed in to change notification settings - Fork 228
Closed
Labels
Description
The path
currently gets unquoted / percent-decoded, which results in unrecoverable loss of information: a request to /foo/bar
is the same as /foo%2Fbar
.
With WSGI there seems to exist workarounds via RAW_URI
/ REQUEST_URI
(e.g. in gunicorn, etianen/aiohttp-wsgi#17).
I think it would be nice to have raw_path
officially in the spec.
I am not sure if it should be a unicode string, or bytes (to avoid another field later on).
(I do not think that raw_uri
(path + query info) is necessary, since query_string
is already given as bytes)
Current spec: https://asgi.readthedocs.io/en/latest/specs/www.html#id1
(Via Kludex/uvicorn#354)