We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce41cc commit 51f85c9Copy full SHA for 51f85c9
lib/handlers/authenticate-handler.js
@@ -139,7 +139,7 @@ class AuthenticateHandler {
139
140
getTokenFromRequestHeader (request) {
141
const token = request.get('Authorization');
142
- const matches = token.match(/^Bearer\s([0-9a-zA-Z-._~+/]+=*)$/);
+ const matches = token.match(/^Bearer ([0-9a-zA-Z-._~+/]+=*)$/);
143
144
if (!matches) {
145
throw new InvalidRequestError('Invalid request: malformed authorization header');
0 commit comments