From 793de96f342b2520d810f1d0b5ed5b63b0c47422 Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Thu, 18 Nov 2021 09:02:57 +0100 Subject: [PATCH] Fix formatting --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 39bf2f6..cae26d0 100644 --- a/server.go +++ b/server.go @@ -215,7 +215,7 @@ func (s *Server) serve(rw http.ResponseWriter, req *http.Request, fn, suf, enc s if ctype == "" { ctype = "application/octet-stream" // Prevent unreliable Content-Type detection on compressed data. } - + // This is used to enforce application/javascript MIME on Windows (https://github.com/golang/go/issues/32350) if strings.HasSuffix(req.URL.Path, ".js") { ctype = "application/javascript"