• Brad Fitzpatrick's avatar
    http: change ResponseWriter.SetHeader(k,v) to Header() accessor · 2c420ece
    Brad Fitzpatrick authored
    Caller code needs to change:
    
    rw.SetHeader("Content-Type", "text/plain")
    to:
    rw.Header().Set("Content-Type", "text/plain")
    
    This now permits returning multiple headers
    with the same name using Add:
    
    rw.Header().Add("Set-Cookie", "..")
    rw.Header().Add("Set-Cookie", "..")
    
    This patch also fixes serialization of headers, removing newline characters.
    
    Fixes #488
    Fixes #914
    
    R=rsc
    CC=gburd, golang-dev
    https://golang.org/cl/4239076
    2c420ece
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
cc Loading commit data...
cgo Loading commit data...
cov Loading commit data...
ebnflint Loading commit data...
gc Loading commit data...
godefs Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
goinstall Loading commit data...
gomake Loading commit data...
gopack Loading commit data...
gotest Loading commit data...
govet Loading commit data...
goyacc Loading commit data...
hgpatch Loading commit data...
ld Loading commit data...
nm Loading commit data...
prof Loading commit data...
Makefile Loading commit data...