From 20bea10cd80f06bdb61888354a674433cd0c5b01 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sat, 15 May 2021 03:53:26 +0800 Subject: [PATCH] fix windows panic --- Reply/F.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Reply/F.go b/Reply/F.go index 8e4e3ad..ca56a31 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1747,9 +1747,8 @@ func init() { <- cancel } else if strings.Contains(path,"m3u8") { - gmt, _ := time.LoadLocation("GMT") w.Header().Set("Cache-Control", "max-age=1") - w.Header().Set("Last-Modified", time.Now().Add(time.Second).In(gmt).Format(time.RFC1123)) + w.Header().Set("Last-Modified", time.Now().Add(time.Second).Format(time.RFC1123)) w.Header().Set("Content-Type", "application/vnd.apple.mpegurl") w.Header().Set("Connection", "Keep-Alive") -- 2.39.2