1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:40:22 -07:00

net/http/httputil: fix string in test failure message

R=golang-dev, daniel.morsing
CC=golang-dev
https://golang.org/cl/7722043
This commit is contained in:
Brad Fitzpatrick 2013-03-11 13:23:47 -07:00
parent ea196278aa
commit 404e4a90cb

View File

@ -30,7 +30,7 @@ func TestReverseProxy(t *testing.T) {
t.Errorf("handler got Connection header value %q", c) t.Errorf("handler got Connection header value %q", c)
} }
if c := r.Header.Get("Upgrade"); c != "" { if c := r.Header.Get("Upgrade"); c != "" {
t.Errorf("handler got Keep-Alive header value %q", c) t.Errorf("handler got Upgrade header value %q", c)
} }
if g, e := r.Host, "some-name"; g != e { if g, e := r.Host, "some-name"; g != e {
t.Errorf("backend got Host header %q, want %q", g, e) t.Errorf("backend got Host header %q, want %q", g, e)