aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/gofix/httpserver_test.go
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-03-17 09:59:18 +1100
committerAndrew Gerrand <adg@golang.org>2011-03-17 09:59:18 +1100
commit4bd0a544350568e28a49843e7311a8b04517a60f (patch)
treeddd9103ce18ab97a10184a85fea06bc23593c0dd /src/cmd/gofix/httpserver_test.go
parent5dd0869bf52f713d88eaa77e028d762a8e132800 (diff)
downloadgo-4bd0a544350568e28a49843e7311a8b04517a60f.tar.xz
gofix: httpserver - rewrite rw.SetHeader to rw.Header.Set
R=rsc CC=golang-dev https://golang.org/cl/4271048
Diffstat (limited to 'src/cmd/gofix/httpserver_test.go')
-rw-r--r--src/cmd/gofix/httpserver_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/gofix/httpserver_test.go b/src/cmd/gofix/httpserver_test.go
index 2866ad896d..89bb4fa710 100644
--- a/src/cmd/gofix/httpserver_test.go
+++ b/src/cmd/gofix/httpserver_test.go
@@ -16,6 +16,8 @@ var httpserverTests = []testCase{
import "http"
func f(xyz http.ResponseWriter, abc *http.Request, b string) {
+ xyz.SetHeader("foo", "bar")
+ xyz.SetHeader("baz", "")
xyz.Hijack()
xyz.Flush()
go xyz.Hijack()
@@ -33,6 +35,8 @@ func f(xyz http.ResponseWriter, abc *http.Request, b string) {
import "http"
func f(xyz http.ResponseWriter, abc *http.Request, b string) {
+ xyz.Header().Set("foo", "bar")
+ xyz.Header().Del("baz")
xyz.(http.Hijacker).Hijack()
xyz.(http.Flusher).Flush()
go xyz.(http.Hijacker).Hijack()