Skip to content

Commit 51f85c9

Browse files
changed \s to space
1 parent 5ce41cc commit 51f85c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/authenticate-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class AuthenticateHandler {
139139

140140
getTokenFromRequestHeader (request) {
141141
const token = request.get('Authorization');
142-
const matches = token.match(/^Bearer\s([0-9a-zA-Z-._~+/]+=*)$/);
142+
const matches = token.match(/^Bearer ([0-9a-zA-Z-._~+/]+=*)$/);
143143

144144
if (!matches) {
145145
throw new InvalidRequestError('Invalid request: malformed authorization header');

0 commit comments

Comments
 (0)