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

Path param encoding is broken #781

Closed
sakateka opened this issue Mar 5, 2024 · 0 comments · Fixed by #782
Closed

Path param encoding is broken #781

sakateka opened this issue Mar 5, 2024 · 0 comments · Fixed by #782
Assignees
Labels
Milestone

Comments

@sakateka
Copy link
Contributor

sakateka commented Mar 5, 2024

Hi!
I have the following code example.

c.SetBaseURL("https://example.com/prefix")
r.SetPathParam("first", "1").
        SetPathParam("second", "2")
r.Get("{first}/{second}")

And after the release v2.10.0-rc.1 this example started failing.
The debug logs show the following

GET /prefix/%7Bfirst%7D/%7Bsecond%7D
HOST   :  example.com

I wrote the test and corrected the code, the PR is attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants