Modify http status code to variable in README (#350)
* Modify http status code to variable * Modify doc * Modify README
This commit is contained in:
@@ -473,7 +473,7 @@ func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler
|
|||||||
next.ServeHTTP(w, r)
|
next.ServeHTTP(w, r)
|
||||||
} else {
|
} else {
|
||||||
// Write an error and stop the handler chain
|
// Write an error and stop the handler chain
|
||||||
http.Error(w, "Forbidden", 403)
|
http.Error(w, "Forbidden", http.StatusForbidden)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user