Mikhus/domurl

Query parameters are not decoded when using lowercase hex codes

Closed this issue · 1 comments

This code gives proper result:

>>> new Url('http://localhost/?a=%3F').query.a
"?"
>>> new Url('http://localhost/?a=%3F').toString()
"http://localhost/?a=%3F"

And this does not decode query parameters, resulting in double-encoding when using toString():

>>> new Url('http://localhost/?a=%3f').query.a
"%3f"
>>> new Url('http://localhost/?a=%3f').toString()
"http://localhost/?a=%253f"

Thank you for reporting, I'll take a look as I will have free time