Fix JPEG screen length

This commit is contained in:
Alexey Khit
2023-09-02 07:36:26 +03:00
parent 82d1f2cf0b
commit f6f2998e85
+1 -1
View File
@@ -61,7 +61,7 @@ func handlerKeyframe(w http.ResponseWriter, r *http.Request) {
h := w.Header()
h.Set("Content-Type", "image/jpeg")
h.Set("Content-Length", strconv.Itoa(once.Len()))
h.Set("Content-Length", strconv.Itoa(len(b)))
h.Set("Cache-Control", "no-cache")
h.Set("Connection", "close")
h.Set("Pragma", "no-cache")