Skip to content

bitreq re-encode an already encoded url #468

@roeierez

Description

@roeierez

Seems like if we pass an already encoded url for an http request internally it is encoded again causes the query to be doubled encoded.

Input URL: /test?query=%7B%22id%22%7D
Result: /test?query=%257B%2522id%2522%257D

I think the problem is actually in parse implementation that attempts to encode '%' character.

UrlParseStatus::PathAndQuery | UrlParseStatus::Fragment => match c {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions