mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-11 08:07:31 +02:00
http response name convention.
This commit is contained in:
parent
3f312c84ad
commit
c4978ba376
6 changed files with 11 additions and 11 deletions
|
@ -52,7 +52,7 @@ func (api *ApiManagerCtx) Authenticate(next http.Handler) http.Handler {
|
|||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
session, err := api.sessions.Authenticate(r)
|
||||
if err != nil {
|
||||
utils.HttpNotAuthenticated(w, err)
|
||||
utils.HttpUnauthorized(w, err)
|
||||
} else {
|
||||
next.ServeHTTP(w, auth.SetSession(r, session))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue