aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http/server.go
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2011-07-21 22:20:09 +1000
committerDavid Symonds <dsymonds@golang.org>2011-07-21 22:20:09 +1000
commit6c46afdf413582f37ddebdb6b53923ef2a299610 (patch)
tree8d1456b0edfb8304602d89b675334f741db3a2d1 /src/pkg/http/server.go
parent14eba969d88d2d5af8443acc9450f0b31f1bcf55 (diff)
downloadgo-6c46afdf413582f37ddebdb6b53923ef2a299610.tar.xz
http: disable sniffer for now.
Something is broken, and investigation is underway. In the meantime, godoc is broken, so disable sniffing for now by reverting to the pre-sniffer state. R=r CC=golang-dev https://golang.org/cl/4809046
Diffstat (limited to 'src/pkg/http/server.go')
-rw-r--r--src/pkg/http/server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go
index dd4547c25f..b3fb8e101c 100644
--- a/src/pkg/http/server.go
+++ b/src/pkg/http/server.go
@@ -255,7 +255,9 @@ func (w *response) WriteHeader(code int) {
} else {
// If no content type, apply sniffing algorithm to body.
if w.header.Get("Content-Type") == "" {
- w.needSniff = true
+ // NOTE(dsymonds): the sniffing mechanism in this file is currently broken.
+ //w.needSniff = true
+ w.header.Set("Content-Type", "text/html; charset=utf-8")
}
}