Descriptionnet/http: don't allow Content-Type or body on 204 and 1xx
Status codes 204, 304, and 1xx don't allow bodies. We already
had a function for this, but we were hard-coding just 304
(StatusNotModified) in a few places. Use the function
instead, and flesh out tests for all codes.
Fixes Issue 6685
Patch Set 1 #Patch Set 2 : diff -r 57cda04cc69d https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 57cda04cc69d https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 57cda04cc69d https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|