mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
update
This commit is contained in:
14
server/utils/location.go
Normal file
14
server/utils/location.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/gin-contrib/location"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func GetScheme(c *gin.Context) string {
|
||||
url := location.Get(c)
|
||||
if url == nil {
|
||||
return "http"
|
||||
}
|
||||
return url.Scheme
|
||||
}
|
||||
Reference in New Issue
Block a user