This commit is contained in:
Your Name 2020-01-22 12:25:28 +00:00
parent 4b9d9d42b7
commit 945c4d7559
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ func BasicAuth(next http.Handler) http.Handler {
w.Header().Set("WWW-Authenticate", `Basic realm="mydomains"`) w.Header().Set("WWW-Authenticate", `Basic realm="mydomains"`)
http.Error(w, "Unauthorized", http.StatusUnauthorized) http.Error(w, "Unauthorized", http.StatusUnauthorized)
return
} }
} }