Why does the default mux only return response type “GET” (no matter what the request is) if there is a “/” appended to the path

后端 未结 0 1708
北恋
北恋 2020-12-15 01:03

I\'m implementing a http server in Go using the default mux. However, I noticed a strange behavior:

http.HandleFunc("/api/users", userHandlers.APIUs         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题