summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roseh.moe.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index 2092f5c..5c88422 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -595,8 +595,7 @@ type jellyfinReverseProxy struct {
func (p *jellyfinReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if !cookieAuth(w, r) {
- // redirectLogin(w, r, "https://cinema.roseh.moe")
- http.Error(w, "invalid cookie", http.StatusUnauthorized)
+ redirectLogin(w, r, "https://cinema.roseh.moe")
return
}
p.proxy.ServeHTTP(w, r)