Fixed a couple of connection request issues.

This commit is contained in:
Zaid Abdulla committed 2014-07-12 23:24:13 +03:00
1 parent ec2dd87693
commit 2279de3c70
2 files changed
+16 -5

No files matched your search

+2 -2
View File
@@ -7,11 +7,11 @@ 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]
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]
return res