Skip to content

Commit

Permalink
http: make triv.go example compile again
Browse files Browse the repository at this point in the history
Ideally we'd compile all example files during
the build, though.

Fixes #1660

R=r
CC=golang-dev
https://golang.org/cl/4358049
  • Loading branch information
bradfitz committed Apr 4, 2011
1 parent 0f46aaf commit a2bcd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/http/triv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a2bcd38

Please sign in to comment.