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

fix(http): inconsistencies on urlpattern usage on scope #1059

Merged
merged 3 commits into from
Mar 11, 2024
Merged

Conversation

lucasfernog
Copy link
Member

Changes the HTTP scope URL parsing to match the behaivor of the JavaScript implementation of URLPattern.
A pattern like http://localhost should automatically allow any subpath, query params and hash.
To define a custom query param match rule, you must escape the ? character e.g. http://localhost/path\\?q=*&x=*

@lucasfernog lucasfernog requested a review from a team as a code owner March 9, 2024 12:53
@FabianLars FabianLars linked an issue Mar 11, 2024 that may be closed by this pull request
@vangork
Copy link

vangork commented Mar 11, 2024

Shall we add some test cases for urls containing query parameters and hash?

amrbashir
amrbashir previously approved these changes Mar 11, 2024
@FabianLars
Copy link
Member

Shall we add some test cases for urls containing query parameters and hash?

Probably a good idea :)

@lucasfernog lucasfernog merged commit c873e4d into v2 Mar 11, 2024
13 checks passed
@lucasfernog lucasfernog deleted the fix/http-scope branch March 11, 2024 16:39
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

Successfully merging this pull request may close these issues.

[http][v2] acl regression for url containing params
4 participants