• 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
..
Makefile Loading commit data...
codewalk.go Loading commit data...
dirtrees.go Loading commit data...
doc.go Loading commit data...
format.go Loading commit data...
godoc.go Loading commit data...
index.go Loading commit data...
main.go Loading commit data...
mapping.go Loading commit data...
snippet.go Loading commit data...
spec.go Loading commit data...
utils.go Loading commit data...