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
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It's frustrating when urlparam gets the case. Most web frameworks are not case sensitive
Describe the solution you'd like
A clear and concise description of what you want to happen.
[FEATURE REQUEST] Urlparam is case insensitive
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
ctx.URLParam("A")=ctx.URLParam("b")
It's better to iris.New can be used as only one option
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
The parameters should always be in lowercase, because that's how they are passed from clients. So ctx.URLParam("a") reads both ?a=test and ?A=test. That's the default behavior of the standard net/http package and other http language frameworks from C# to python.
package main
import"github.com/kataras/iris/v12"funcmain() {
app:=iris.New()
app.Get("/", handler)
// http://localhost:8080?a=test// http://localhost:8080?A=testapp.Listen(":8080")
}
funchandler(ctx iris.Context) {
a:=ctx.URLParam("a")
ctx.Writef("parameter A = %s", a)
}
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It's frustrating when urlparam gets the case. Most web frameworks are not case sensitive
Describe the solution you'd like
A clear and concise description of what you want to happen.
[FEATURE REQUEST] Urlparam is case insensitive
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
ctx.URLParam("A")=ctx.URLParam("b")
It's better to iris.New can be used as only one option
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: