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
always show message
[HTTP Server] http: URL query contains semicolon, which is no longer a supported separator; parts of the query may be stripped when parsed; see golang.org/issue/25192
need to fix or disable it
thanks ~
The text was updated successfully, but these errors were encountered:
Based on the comments at golang/go#25192 (comment) and golang/go#25192 (comment), after go 1.17 (caused the issue). We have the option to use a middleware to convert the ; to & or/and ignore the http server warning log. I've just pushed a commit which can solve your(and thousands more) issue. Update your Iris version to the latest commit and follow:
my url == http://127.0.0.1:8879/test?cmd=2330,0;
func main() {
appIris := iris.New()
appIris.Get("/test", func(ctx iris.Context) {
testParam(ctx)
})
appIris.Run(iris.Addr(8879) /* 0.*/, iris.WithPostMaxMemory(maxSize))
}
func testParam(ctx iris.Context) {
fmt.Println("testParam : ", ctx.Request().URL.RawQuery)
}
always show message
[HTTP Server] http: URL query contains semicolon, which is no longer a supported separator; parts of the query may be stripped when parsed; see golang.org/issue/25192
need to fix or disable it
thanks ~
The text was updated successfully, but these errors were encountered: