Fixed typo in vidplayer logging (#390)

This commit is contained in:
Chase Media
2024-07-25 09:26:40 -07:00
committed by GitHub
parent 956ccf4d08
commit 5d250f1833

View File

@@ -176,7 +176,7 @@ func handleLive(w http.ResponseWriter, r *http.Request,
w.Header().Set("Content-Length", strconv.Itoa(len(seg)))
_, err = w.Write(seg)
if err != nil {
glog.Errorf("Error writting response %v: %v", r.URL, err)
glog.Errorf("Error writing response %v: %v", r.URL, err)
if err == ErrNotFound {
http.Error(w, "ErrNotFound", 404)
} else if err == ErrTimeout {
@@ -184,7 +184,7 @@ func handleLive(w http.ResponseWriter, r *http.Request,
} else if err == ErrBadRequest {
http.Error(w, "ErrBadRequest", 400)
} else {
http.Error(w, "Error writting segment", 500)
http.Error(w, "Error writing segment", 500)
}
return
}