mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Update msx.go
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
|
"server/version"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
@@ -24,7 +25,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func asset(c *gin.Context, t string, d []byte) {
|
func asset(c *gin.Context, t string, d []byte) {
|
||||||
c.Header("Access-Control-Allow-Origin", "*")
|
|
||||||
c.Header("Content-Encoding", "gzip")
|
c.Header("Content-Encoding", "gzip")
|
||||||
c.Data(200, t+"; charset=UTF-8", d)
|
c.Data(200, t+"; charset=UTF-8", d)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user