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
Sounds like a problem with your client software if you can see the http response sent over the wire.
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
Go version
go version go1.22.5 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I Ran a basic web server to test http PATCH call
type User struct {
ID int
json:"id"
}
func main() {
http.HandleFunc("/users/", patchUserHandler)
http.ListenAndServe(":8080", nil)
}
func patchUserHandler(w http.ResponseWriter, r *http.Request) {
...
..
json.NewEncoder(w).Encode(User{})
}
What did you see happen?
NO response when run from curl or postman or go client code
curl --location --request PATCH 'http://localhost:8080/users/'
GET/POST/DELETE/PUT is working
When monitored from wireshark I can see the response in http packet
When run directly run within ubuntu VM (in microk8s) on same go version, getting response for PATCH call.
What did you expect to see?
Expecting any "response" either 200+ or 400+ http status
The text was updated successfully, but these errors were encountered: