Skip to content

Commit

Permalink
Merge pull request #1 from cengizIO/master
Browse files Browse the repository at this point in the history
Remove extra double quotes from Realm
  • Loading branch information
Mehmet Gurevin committed Oct 16, 2014
2 parents bba8bdb + a23503b commit b727b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (b *basicAuth) authenticate(r *http.Request) bool {

// Require authentication, and serve our error handler otherwise.
func (b *basicAuth) requestAuth(w http.ResponseWriter, r *http.Request) {
w.Header().Set("WWW-Authenticate", fmt.Sprintf(`Basic realm="%q"`, b.opts.Realm))
w.Header().Set("WWW-Authenticate", fmt.Sprintf(`Basic realm=%q`, b.opts.Realm))
b.opts.UnauthorizedHandler.ServeHTTP(w, r)
}

Expand Down

0 comments on commit b727b0c

Please sign in to comment.