Hacker News new | ask | show | jobs
by hft 25 days ago
https://docs.python.org/3/library/urllib.parse.html
1 comments

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.