Skip to content
Permalink
Browse files

BugFix. cnonce value was not being quoted in the Digest Authentication.

  • Loading branch information
jmillan committed Nov 13, 2012
1 parent 99daad4 commit aa482010ac51fd36e5c031a7b3be92280af7c264
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/DigestAuthentication.js
@@ -65,7 +65,7 @@ JsSIP.DigestAuthentication = function (ua, request, response) {
authorization.response = '"' + response + '"';
authorization.algorithm = "MD5";
authorization.opaque = authenticate.opaque || null;
authorization.cnonce = authenticate.qop ? cnonce : null;
authorization.cnonce = authenticate.qop ? '"' + cnonce + '"' : null;
authorization.nc = authenticate.qop ? nc : null;

for(param in authorization) {
@@ -75,4 +75,4 @@ JsSIP.DigestAuthentication = function (ua, request, response) {
}

return 'Digest ' + digest.substr(1);
};
};

0 comments on commit aa48201

Please sign in to comment.
You can’t perform that action at this time.