You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect a path component with %2F to match one path parameter:
$ curl localhost:9000/hello/p1%2Fp2
One parameter: 'p1%2Fp2'
Actual result
~> curl localhost:9000/hello/p1
One parameter: 'p1'
~> curl localhost:9000/hello/p1/p2
Two parameters: 'p1' and 'p2'
~> curl localhost:9000/hello/p1%2Fp2
Two parameters: 'p1' and 'p2'
Environment
go version: 1.17.5
gin version (or commit ref): v1.7.7
operating system: macOS 11.6.2 (darwin/amd64)
Related issues
I suspect that issue 2047 has the same underlying problem.
The text was updated successfully, but these errors were encountered:
Description
It appears that the path is decoded before matching/routing, leading to erroneous matches when the URL contains %2F.
How to reproduce
Expectations
I expect a path component with %2F to match one path parameter:
Actual result
Environment
Related issues
I suspect that issue 2047 has the same underlying problem.
The text was updated successfully, but these errors were encountered: