Handle if getting cookies errors for some reason..

pull/11/head
Stein Ivar Berghei 2023-03-31 00:37:59 +02:00
parent 91e9e9093d
commit 1eb81d2da5
1 changed files with 3 additions and 0 deletions

View File

@ -182,6 +182,9 @@ func auth(n httprouter.Handle) httprouter.Handle {
} else if err == http.ErrNoCookie { } else if err == http.ErrNoCookie {
gothic.BeginAuthHandler(w, r) gothic.BeginAuthHandler(w, r)
return return
} else if err != nil {
fmt.Fprintln(w, err)
return
} }
} }
} }