Browse Source

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

pull/3013/head
Alessandro Ros 1 year ago committed by GitHub
parent
commit
df3dfea132
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      internal/servers/hls/hlsjsdownloader/main.go

3
internal/servers/hls/hlsjsdownloader/main.go

@ -7,6 +7,7 @@ import ( @@ -7,6 +7,7 @@ import (
"log"
"net/http"
"os"
"strings"
)
func do() error {
@ -16,7 +17,7 @@ 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 {

Loading…
Cancel
Save