diff --git a/History.txt b/History.txt index 7f5ce32..95ede56 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,8 @@ +=== Upcoming + +* Bug fix + * Fix thread-safety race condition. Issue #2. + === 1.4.1 * Bug fix diff --git a/lib/net/http/digest_auth.rb b/lib/net/http/digest_auth.rb index 080f286..28904c3 100644 --- a/lib/net/http/digest_auth.rb +++ b/lib/net/http/digest_auth.rb @@ -138,7 +138,7 @@ def auth_header uri, www_authenticate, method, iis = false "nonce=\"#{params['nonce']}\"", if qop then [ - "nc=#{'%08x' % @nonce_count}", + "nc=#{'%08x' % nonce_count}", "cnonce=\"#{cnonce}\"", ] end,