master
Bel LaPointe 2019-02-18 17:18:33 -07:00
parent 2c266ffb36
commit f4cae786d5
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ func (s *Server) doAuth(foo http.HandlerFunc) http.HandlerFunc {
usr, pwd, ok := r.BasicAuth()
if !ok || rusr != usr || rpwd != pwd {
w.WriteHeader(http.StatusUnauthorized)
log.Printf("denying basic auth")
return
}
}