mirror of
https://github.com/golang/go
synced 2024-11-19 19:04:47 -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:
parent
a574822f80
commit
910caf9345
@ -32,7 +32,7 @@ type Response struct {
|
||||
ProtoMinor int // e.g. 0
|
||||
|
||||
// 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
|
||||
// be semantically equivalent to a comma-delimited sequence.) Values
|
||||
// duplicated by other fields in this struct (e.g., ContentLength) are
|
||||
|
Loading…
Reference in New Issue
Block a user