Skip to content

HTTPRequest.path does not preserve percent-escaping #175

@jeffska

Description

@jeffska

Because of the code path utilizing the (now deprecated) URL.path var, the resulting path in HTTPRequest is not percent-escaped. Normally that may not be a big issue, but that also means that any %2F values are getting unescaped to '/' which then messes with the actual segments.

My use case can't use predefined routes exclusively, so I end up having to inspect the path. The vast majority of the time it's not going to be an issue, but there are a few rare edge cases where it could 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