Fixed bug in digest authentication in some devices.

This commit is contained in:
Zaid Abdulla committed 2013-09-08 01:06:24 +03:00
1 parent e3b184553e
commit 8fe2f9c4a4
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ exports.parseAuthHeader = (authHeader) ->
res['method'] = authHeader.slice(0, i) res['method'] = authHeader.slice(0, i)
options = authHeader.slice(i + 1) options = authHeader.slice(i + 1)
regex = /([a-z]+)="([a-zA-Z0-9\/\.@\-,]+)"/g regex = /([a-z]+)="([a-zA-Z0-9\/\.@\-,=]+)"/g
while (r = regex.exec(options)) != null while (r = regex.exec(options)) != null
res[r[1]] = r[2] res[r[1]] = r[2]