Skip to content

canonicalize_url incorrectly handles port when using hostname that requires IDNA encoding #222

Open
@hwo411

Description

@hwo411

Hello,

We just recently encountered the following problem:

canonicalize_url('https://тест.тест:33')

which returns
https://xn--e1aybc.xn--:33-qdd4dec/

while the expected value is

https://xn--e1aybc.xn--e1aybc:33/

And that happens to every hostname that required IDNA encoding for their TLD.

Could you please fix this behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions