aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2011-04-04 08:10:26 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2011-04-04 08:10:26 -0700
commita2bcd3814d60545dab1a5e6f88005d89a9c38615 (patch)
treea4f3eef68f331270384f4f606fcdd290b393c1eb
parent0f46aaf8b3e43ea5add91c73aec5773f0d028b35 (diff)
downloadgo-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.go2
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 {