mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
change no auth status
This commit is contained in:
@@ -156,7 +156,8 @@ func streamNoAuth(c *gin.Context) {
|
|||||||
|
|
||||||
tor := torr.GetTorrent(spec.InfoHash.HexString())
|
tor := torr.GetTorrent(spec.InfoHash.HexString())
|
||||||
if tor == nil {
|
if tor == nil {
|
||||||
c.AbortWithStatus(http.StatusForbidden)
|
c.Header("WWW-Authenticate", "Basic realm=Authorization Required")
|
||||||
|
c.AbortWithStatus(http.StatusUnauthorized)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user