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

IsRequestURI fails for non-absolute URLs #477

Open
andrewpmartinez opened this issue Jun 8, 2022 · 0 comments
Open

IsRequestURI fails for non-absolute URLs #477

andrewpmartinez opened this issue Jun 8, 2022 · 0 comments

Comments

@andrewpmartinez
Copy link

Bug Report

Q A
Version(s) v11.0.1 and earlier?

Summary

APIs that return relative URIs fail to validate as url.ParseRequestURI is used instead of url.Parse. ParseRequestURI is documented as:

... the url is interpreted only as an absolute URI or an absolute path.

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.

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