diff options
Diffstat (limited to 'src/pkg/http/server.go')
| -rw-r--r-- | src/pkg/http/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go index 08cbed7ad8..ab960f4f0a 100644 --- a/src/pkg/http/server.go +++ b/src/pkg/http/server.go @@ -421,7 +421,7 @@ func errorKludge(w *response) { msg += " would ignore this error page if this text weren't here.\n" // Is it text? ("Content-Type" is always in the map) - baseType := strings.Split(w.header.Get("Content-Type"), ";", 2)[0] + baseType := strings.SplitN(w.header.Get("Content-Type"), ";", 2)[0] switch baseType { case "text/html": io.WriteString(w, "<!-- ") |
