1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:14:43 -07:00

net/http: fix Response.Header documentation for multiple headers with same key

Whether the keys are concatenated or separate (or a mixture) depends on the server.

Fixes #5979.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12433043
This commit is contained in:
Josh Bleecher Snyder 2013-08-04 11:23:17 -07:00 committed by Brad Fitzpatrick
parent a574822f80
commit 910caf9345

View File

@ -32,7 +32,7 @@ type Response struct {
ProtoMinor int // e.g. 0 ProtoMinor int // e.g. 0
// Header maps header keys to values. If the response had multiple // Header maps header keys to values. If the response had multiple
// headers with the same key, they will be concatenated, with comma // headers with the same key, they may be concatenated, with comma
// delimiters. (Section 4.2 of RFC 2616 requires that multiple headers // delimiters. (Section 4.2 of RFC 2616 requires that multiple headers
// be semantically equivalent to a comma-delimited sequence.) Values // be semantically equivalent to a comma-delimited sequence.) Values
// duplicated by other fields in this struct (e.g., ContentLength) are // duplicated by other fields in this struct (e.g., ContentLength) are