Use url.ParseRequestURI
instead of url.Parse
where appropriate
#2796
Labels
url.ParseRequestURI
instead of url.Parse
where appropriate
#2796
🎯 Problem to be solved
In many places we use
url.Parse
which does not return an error if a given URL has no scheme prefix. We want to verify important URLs that they are well-formed URL strings including the scheme.Original discussion
🛠️ Proposed solution
url.Parse
instances and replace withurl.ParseRequestURI
where appropriate.🧪 Tests
The text was updated successfully, but these errors were encountered: