Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing issue #16.

  • Loading branch information...
commit ff2f491055890d6f650621398a5a17032de97357 1 parent 08d5e64
@gevorg authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/auth/digest.js
View
6 lib/auth/digest.js
@@ -100,7 +100,7 @@ Digest.prototype.isAuthenticated = function(request) {
// If qop is specified.
if(co.qop) {
- if(co.nc > this.nonces[co.nonce]) {
+ if(co.nc > this.nonces[co.nonce]) {
// Updating nonce count.
this.nonces[co.nonce] = co.nc;
@@ -109,7 +109,9 @@ Digest.prototype.isAuthenticated = function(request) {
co.cnonce + ":" + co.qop + ":" + ha2);
authenticated = (authRes == co.response) ? co.username : undefined;
- }
+ } else {
+ authenticated = this.STALE;
+ }
} else {
// Evaluating final authentication response.
var authRes = utils.md5(ha1 + ":" + co.nonce + ":" + ha2);
Please sign in to comment.
Something went wrong with that request. Please try again.