Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More robust error checking in URL parsing #17

Open
slime73 opened this issue Apr 25, 2023 · 0 comments
Open

More robust error checking in URL parsing #17

slime73 opened this issue Apr 25, 2023 · 0 comments

Comments

@slime73
Copy link
Member

slime73 commented Apr 25, 2023

The URL parsing code (HTTPRequest::parseUrl) works for valid URLs but can have confusing errors (or maybe even nonexistent ones sometimes) for invalid URLs. For example https:\\example.com might throw an exception related to stoi trying to parse a non-integer character, instead of saying something about the schema not being valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant