Allow space characters in quoted values in HTTP authentication header. Fixes #9.

This commit is contained in:
Zaid Abdulla committed 2014-05-16 11:41:28 +03:00
1 parent bef5d0e4dc
commit 5bd7c99eea
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ exports.parseAuthHeader = (authHeader) ->
res['method'] = authHeader.slice(0, i)
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
res[r[1]] = r[2]