Params encoding
#2648
Replies: 1 comment
-
The reason that is happening is because of URL encoding. This is a function of the browser and the internet, not of your website or server. To solve this issue, you can parse your URL slug to the format you would like to use or parse the %26 line. All of this is dandy, but you can just solve your issue by using query parameters. It would only be a few lines of code with Echo and would save you a lot of headache. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why param string is encoded. I have handler like: e.GET("/realtime/:city/:stopIDs", handler.method)`
stopIDs is a string that is separated by &, like param1¶m2¶m3. It is not query param it is just regular string. However when i get value using c.Param("stopIDs"), & sign is replaced with %26, is there config or other way to prevent this behavior.
Beta Was this translation helpful? Give feedback.
All reactions