Allow space characters in quoted values in HTTP authentication header. Fixes #9.
This commit is contained in:
1 parent
bef5d0e4dc
commit
5bd7c99eea
1 file changed
+1
-1
+1
-1
@@ -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]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user