fix(net): close of closed channel (#7580)

This commit is contained in:
hshpy
2024-12-17 22:04:27 +08:00
committed by GitHub
parent cf58ab3a78
commit 331885ed64
2 changed files with 2 additions and 5 deletions

View File

@ -174,7 +174,7 @@ func ServeHTTP(w http.ResponseWriter, r *http.Request, name string, modTime time
pw.Close()
}()
}
defer sendContent.Close()
//defer sendContent.Close()
w.Header().Set("Accept-Ranges", "bytes")
if w.Header().Get("Content-Encoding") == "" {