From aa482010ac51fd36e5c031a7b3be92280af7c264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Tue, 13 Nov 2012 15:01:12 +0100 Subject: [PATCH] BugFix. cnonce value was not being quoted in the Digest Authentication. --- src/DigestAuthentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DigestAuthentication.js b/src/DigestAuthentication.js index c6243a940..3f2ccfcc5 100644 --- a/src/DigestAuthentication.js +++ b/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); -}; \ No newline at end of file +};