http: fix http/1.0 connection close

This commit is contained in:
ginuerzh
2024-11-01 18:17:50 +08:00
parent f4d9a5f79b
commit edb9a992e2
2 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ func (h *fileHandler) handleFunc(w http.ResponseWriter, r *http.Request) {
log.WithFields(map[string]any{
"duration": time.Since(start),
}).Infof("%s %s %d %d", r.Method, r.RequestURI, rw.statusCode, rw.contentLength)
}).Infof("%s %s %s %d %d", r.Method, r.RequestURI, r.Proto, rw.statusCode, rw.contentLength)
}()
if auther := h.options.Auther; auther != nil {