lua-https icon indicating copy to clipboard operation
lua-https copied to clipboard

More robust error checking in URL parsing

Open slime73 opened this issue 2 years ago • 0 comments

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.

slime73 avatar Apr 25 '23 21:04 slime73