Merge pull request #256 from ncdc/master

Send WWW-Authenticate header for silly auth
This commit is contained in:
Stephen Day 2015-03-11 19:01:23 -07:00
commit efb24490c7
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ func (ch *challenge) ServeHTTP(w http.ResponseWriter, r *http.Request) {
header = fmt.Sprintf("%s,scope=%q", header, ch.scope)
}
w.Header().Set("Authorization", header)
w.Header().Set("WWW-Authenticate", header)
w.WriteHeader(http.StatusUnauthorized)
}