jjzjj

QueryUnescape

全部标签

amazon-web-services - 弹性 beantalk 上的 Golang 应用程序似乎正在接收双重编码请求

我在Golang应用程序中使用gorilla/mux从我的路由中检索变量,如下所示:funcmain(){router:=mux.NewRouter()router.HandleFunc("/items/{name}",itemHandler)log.Fatal(http.ListenAndServe(":5000",router)}funcitemHandler(whttp.ResponsWriter,r*http.Request){name:=mux.Vars(r)["name"]fmt.Println("nameis:",name)}如果我在本地VM上导航到/items/supe

amazon-web-services - 弹性 beantalk 上的 Golang 应用程序似乎正在接收双重编码请求

我在Golang应用程序中使用gorilla/mux从我的路由中检索变量,如下所示:funcmain(){router:=mux.NewRouter()router.HandleFunc("/items/{name}",itemHandler)log.Fatal(http.ListenAndServe(":5000",router)}funcitemHandler(whttp.ResponsWriter,r*http.Request){name:=mux.Vars(r)["name"]fmt.Println("nameis:",name)}如果我在本地VM上导航到/items/supe