|
|
@ -185,7 +185,10 @@ func (fsrv *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) error |
|
|
|
|
|
|
|
// TODO: Etag
|
|
|
|
|
|
|
|
// TODO: Disable content-type sniffing by setting a content-type...
|
|
|
|
// do not allow Go to sniff the content-type
|
|
|
|
if w.Header().Get("Content-Type") == "" { |
|
|
|
w.Header()["Content-Type"] = nil |
|
|
|
} |
|
|
|
|
|
|
|
// let the standard library do what it does best; note, however,
|
|
|
|
// that errors generated by ServeContent are written immediately
|
|
|
|