net-http-digest_auth icon indicating copy to clipboard operation
net-http-digest_auth copied to clipboard

Update digest_auth.rb

Open i-rus opened this issue 12 years ago • 2 comments

The nonce_count for the first authorization request should be 1. Currently 0 is used, which fails causes the authentication to fail with some servers (e.g. Node.js). This changes the initial nonce_count value to 0 so that the value used for the first request will be 1.

i-rus avatar Nov 16 '13 21:11 i-rus

Looks good, but can you update the tests too?

It looks like you'll need to adjust the nc and response values. Copying what's in the travis output should get things working so you won't need to run the tests locally. When you push your commit, travis will auto-run to make sure.

Here's the failures:

https://travis-ci.org/drbrain/net-http-digest_auth/jobs/14077840#L86

drbrain avatar Nov 18 '13 19:11 drbrain

Justa added pull request #17 that supersedes this one. This was an accidental duplicate, sorry!

paulvt avatar Mar 21 '18 12:03 paulvt