mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
15 lines
211 B
Go
15 lines
211 B
Go
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
|
|
}
|