Skip to content

Query string is as urlencoded #6

@Stuart-Wilcox

Description

@Stuart-Wilcox

A query string is not given back as a plain string but rather urlencoded. All the special characters are still escaped, ex. Visit /people?location=London, ON in the browser, and the ' ' is escaped to '%20', Then when accessing it with req.query['location'] you get 'London,%20ON' when you really want 'London, ON'.

The string needs to be url decoded before going into the query dict.

As a sidenote, please consider making req.query and object instead of a dict, sort of the same way req.body should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions