Return store.ErrNotFound if not found when calling over rpc (#1353)

Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
ben-toogood
2020-03-16 10:30:56 +00:00
committed by GitHub
parent d91c14eb30
commit 247707f583
2 changed files with 11 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ func (h authHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// If there is no auth login url set, 401
if loginURL == "" {
w.WriteHeader(401)
return
}
// Redirect to the login path