Skip to content

Escaped Questionmark in URI is not handled correctly  #80

@ghost

Description

When a request is created from an URI containing an escaped ? the ? will still be interpreted as the start of a query string, e.g. HttpRequest("http://localhost/foo%3Fbar") fails to access the right resource.

This is due to using java.net.URI to parse the URI and URI.getPath returning the path with (partially) escaped segments.

A workarround therefore is to use withPath: HttpRequest("http://localhost").withPath("/foo%3Fbar") works as expected.

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