Skip to content

Provide raw path / URI #87

@blueyed

Description

@blueyed

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions