Skip to content

REQUEST_URI should preserve the query string #1781

Description

@fmang

REQUEST_URI was introduced by #1419: 7162f43

Currently, Werkzeug strips the query string. While REQUEST_URI is not a standard variable, I believe the consensus is to include the query string. According to #766 (comment) that should have be the case for Werkzeug too.

That applies to RAW_URI too.

It’s an edge case, but ideally empty query strings like in /? should be preserved too and not simplified to /.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions