fix compilation with Windows and git autocrlf (#3010) (#3011)

This commit is contained in:
Alessandro Ros 2024-02-12 18:13:01 +01:00 committed by GitHub
parent 9eb97ad3a0
commit df3dfea132
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,7 @@ import (
"log"
"net/http"
"os"
"strings"
)
func do() error {
@ -16,7 +17,7 @@ func do() error {
if err != nil {
return err
}
version := string(buf[:len(buf)-1])
version := strings.TrimSpace(string(buf))
res, err := http.Get("https://cdn.jsdelivr.net/npm/hls.js@" + version + "/dist/hls.min.js")
if err != nil {