commit 237dd3bbad7b0afc7dd58c3133ca034e5e4c6777
parent 35dcbf8b75e53f920da4194ee153ffca0e5ccd22
Author: Ryan Wolf <johnwayne@pseudony.ms>
Date: Sun, 17 Feb 2019 09:51:00 -0500
Leave out optional realm
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/novelty.go b/novelty.go
@@ -60,7 +60,7 @@ func authorized(r *http.Request) bool {
func setAnswer(answer string) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
if !authorized(r) {
- w.Header().Set("WWW-Authenticate", "Basic realm=\"novelty.go\"")
+ w.Header().Set("WWW-Authenticate", "Basic")
http.Error(w, "Unauthorized", http.StatusUnauthorized)
return
}