We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
主流go语言http路由解析组件默认是这么玩的: 当收到options请求,只要请求路径能匹配到路由表中的任一url模式(不管http方法为何),则返回200,否则返回404
目前ssgo不支持该特性,请支持
The text was updated successfully, but these errors were encountered:
Every net/http based http framework can support options method with any url request. $GOROOT/src/net/http/server.go, line 2733~line 2742
func (sh serverHandler) ServeHTTP(rw ResponseWriter, req *Request) { handler := sh.srv.Handler if handler == nil { handler = DefaultServeMux } if req.RequestURI == "*" && req.Method == "OPTIONS" { handler = globalOptionsHandler{} } handler.ServeHTTP(rw, req) }
Sorry, something went wrong.
No branches or pull requests
主流go语言http路由解析组件默认是这么玩的:
当收到options请求,只要请求路径能匹配到路由表中的任一url模式(不管http方法为何),则返回200,否则返回404
目前ssgo不支持该特性,请支持
The text was updated successfully, but these errors were encountered: