Skip to content

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

Merged
lucasfernog merged 3 commits into
v2from
fix/http-scope
Mar 11, 2024
Merged

fix(http): inconsistencies on urlpattern usage on scope#1059
lucasfernog merged 3 commits into
v2from
fix/http-scope

Conversation

@lucasfernog
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Member

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

Probably a good idea :)

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