Skip to content

Commit

Permalink
BugFix. cnonce value was not being quoted in the Digest Authentication.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Nov 13, 2012
1 parent 99daad4 commit aa48201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DigestAuthentication.js
Expand Up @@ -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) {
Expand All @@ -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.