logoalt Hacker News

hfttoday at 12:35 PM1 replyview on HN

https://docs.python.org/3/library/urllib.parse.html


Replies

Joker_vDtoday at 1:47 PM

Yep, none of them are suitable for this use case; you need to validate the Host header first and reconstruct the URI first before parsing it.