diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2011-04-04 08:10:26 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2011-04-04 08:10:26 -0700 |
commit | a2bcd3814d60545dab1a5e6f88005d89a9c38615 (patch) | |
tree | a4f3eef68f331270384f4f606fcdd290b393c1eb | |
parent | 0f46aaf8b3e43ea5add91c73aec5773f0d028b35 (diff) | |
download | go-a2bcd3814d60545dab1a5e6f88005d89a9c38615.tar.gz go-a2bcd3814d60545dab1a5e6f88005d89a9c38615.zip |
http: make triv.go example compile again
Ideally we'd compile all example files during
the build, though.
Fixes #1660
R=r
CC=golang-dev
https://golang.org/cl/4358049
-rw-r--r-- | src/pkg/http/triv.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/triv.go b/src/pkg/http/triv.go index 9bea6007b5..bff6a106d9 100644 --- a/src/pkg/http/triv.go +++ b/src/pkg/http/triv.go @@ -56,7 +56,7 @@ func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) { var booleanflag = flag.Bool("boolean", true, "another flag for testing") func FlagServer(w http.ResponseWriter, req *http.Request) { - w.Header.Set("Content-Type", "text/plain; charset=utf-8") + w.Header().Set("Content-Type", "text/plain; charset=utf-8") fmt.Fprint(w, "Flags:\n") flag.VisitAll(func(f *flag.Flag) { if f.Value.String() != f.DefValue { |