fix: use StatusUnauthorized
This commit is contained in:
parent
52a1f18c60
commit
da19a2e287
|
@ -171,7 +171,7 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl
|
||||||
}
|
}
|
||||||
|
|
||||||
if unauthorized {
|
if unauthorized {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusUnauthorized)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue