Skip to content

Commit eaa042d

Browse files
committed
Prevent redirects from causing an error
1 parent 9067d6a commit eaa042d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ module.exports = async (request, response, config = {}, methods = {}) => {
408408
});
409409

410410
response.end();
411+
return;
411412
}
412413

413414
let relativePath = applyRewrites(decodedPath, config.rewrites);

0 commit comments

Comments
 (0)