We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc45db1 commit 9e7614dCopy full SHA for 9e7614d
digest.go
@@ -250,9 +250,9 @@ func (da *DigestAuth) JustCheck(wrapped http.HandlerFunc) http.HandlerFunc {
250
251
// NewContext returns a context carrying authentication information for the request.
252
func (da *DigestAuth) NewContext(ctx context.Context, r *http.Request) context.Context {
253
+ username, authinfo := da.CheckAuth(r)
254
da.mutex.Lock()
255
defer da.mutex.Unlock()
- username, authinfo := da.CheckAuth(r)
256
info := &Info{Username: username, ResponseHeaders: make(http.Header)}
257
if username != "" {
258
info.Authenticated = true
0 commit comments