From a9c845651d100b0ee932e118a9da3dc0837f3c48 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Fri, 28 Mar 2025 23:47:32 -0300 Subject: [PATCH] forgot to delete those println xd --- internal/paths/videoplayback.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/paths/videoplayback.go b/internal/paths/videoplayback.go index 2bb7e61..92a7031 100644 --- a/internal/paths/videoplayback.go +++ b/internal/paths/videoplayback.go @@ -183,12 +183,10 @@ func Videoplayback(w http.ResponseWriter, req *http.Request) { // "bytes=500-1000" get 500 bytes starting from 500 byteParts := strings.Split(requestBytes, "-") firstByte, lastByte := byteParts[0], byteParts[1] - fmt.Println(byteParts) if lastByte != "" { w.Header().Add("content-range", "bytes "+requestBytes+"/*") w.WriteHeader(206) } else { - fmt.Println("nolastbyte") // i.e. "bytes=0-", "bytes=600-" // full size of content is able to be calculated, so a full Content-Range header can be constructed bytesReceived := resp.Header.Get("content-length")