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
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
net/http.TimeoutHandler: 200 OK should be sent if not specified
net/http: TimeoutHandler: 200 OK should be sent if not specified
Jun 3, 2016
What version of Go are you using (
go version
)?1.6.2 and 1.4.3
What operating system and processor architecture are you using (
go env
)?linux, amd64
What did you do?
Minimal example server (main.go):
Then:
What did you expect to see?
I expect 200 OK because it is consistent with the default behavior without the TimeoutHandler.
What did you see instead?
Solution
In
func (h *timeoutHandler) ServeHTTP
innet/http/server.go
, change the code from:To:
The text was updated successfully, but these errors were encountered: