lua-https
lua-https copied to clipboard
More robust error checking in URL parsing
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.