Skip to content

white spaces encoded as '%20' are being converted to '%2520' #4

@Rasmnev

Description

@Rasmnev

I have a url in string that has white spaces enconded as '%20'.
url = 'https://somepath.com/test/Test%20path/my%20test%20file.txt'

when I pass it to URL I get the following:

>>> from urlpath import URL
>>> URL("https://somepath.com/test/Test%20path/my%20test%20file.txt")
URL('https://somepath.com/test/Test%2520path/my%20test%20file.txt')

apparently only happens when the spaces are in the midle of the path.

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