mirror of
https://github.com/golang/go
synced 2024-11-21 19:14:44 -07:00
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
This commit is contained in:
parent
14eba969d8
commit
6c46afdf41
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user