mirror of https://github.com/stashapp/stash.git
Return 401 code for ErrUnauthorized (#4842)
This commit is contained in:
parent
ca5febc65b
commit
ad844a225c
|
@ -42,7 +42,7 @@ func authenticateHandler() func(http.Handler) http.Handler {
|
|||
|
||||
userID, err := manager.GetInstance().SessionStore.Authenticate(w, r)
|
||||
if err != nil {
|
||||
if errors.Is(err, session.ErrUnauthorized) {
|
||||
if !errors.Is(err, session.ErrUnauthorized) {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue