Skip to content

Commit

Permalink
Send StatusUnauthorized(401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipok committed Feb 11, 2024
1 parent 8275550 commit 96bae28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auth-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func writeIndexPage(w http.ResponseWriter, req *http.Request) {
if page == nil {
page = domainToLoginPage[""]
}
w.Header().Add("WWW-Authenticate", "Bearer realm=\"JAuth\"")
w.WriteHeader(http.StatusUnauthorized)
w.Write(page)
}

Expand Down

0 comments on commit 96bae28

Please sign in to comment.