Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by hft

5 hours ago

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

1 comment

hft

Reply

Joker_vD  3 hours ago

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.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities