Fix WriteHeader called with both Transfer-Encoding of "chunked" and a Content-Length

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-05-21 20:35:48 -07:00
parent 0aa5ddc684
commit ce22fa7f62

View File

@@ -180,8 +180,6 @@ func (s *Server) ServeSPA(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "public, max-age=3600")
}
w.Header().Set("Transfer-Encoding", "chunked")
http.FileServer(s.spaFS).ServeHTTP(w, r)
}