]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
fix windows panic
authorqydysky <qydysky@foxmail.com>
Fri, 14 May 2021 19:53:26 +0000 (03:53 +0800)
committerqydysky <qydysky@foxmail.com>
Fri, 14 May 2021 19:53:26 +0000 (03:53 +0800)
Reply/F.go

index 8e4e3ad45c50ff10bbf545b18dcf53996c752efc..ca56a314365cd59c12259f5d2a08c451ba4437de 100644 (file)
@@ -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")