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
bradfitz
changed the title
net/http: don't write Content-Length header on 204 response
net/http: Response.Write includes Content-Length header on 204s
Aug 31, 2016
Apparently we send a Content-Length header on a 204 response:
https://play.golang.org/p/bxy_rEBy-s
A 204 can't have a body anyway, so the Content-Length is useless and misleading. (It might be a protocol violation? Haven't checked.)
The text was updated successfully, but these errors were encountered: