Open andrewpmartinez opened 2 years ago
APIs that return relative URIs fail to validate as url.ParseRequestURI is used instead of url.Parse. ParseRequestURI is documented as:
url.ParseRequestURI
url.Parse
ParseRequestURI
... the url is interpreted only as an absolute URI or an absolute path.
Relative URIs fail validation (e.g. ./some-path)
./some-path
Attempt to validate a relative URI. (e.g. ./some-path)
Aboslute and relative URIs pass validation.
Bug Report
Summary
APIs that return relative URIs fail to validate as
url.ParseRequestURI
is used instead ofurl.Parse
.ParseRequestURI
is documented as:Current behavior
Relative URIs fail validation (e.g.
./some-path
)How to reproduce
Attempt to validate a relative URI. (e.g.
./some-path
)Expected behavior
Aboslute and relative URIs pass validation.