Skip to content

Commit

Permalink
Prevent redirects from causing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed May 23, 2018
1 parent 9067d6a commit eaa042d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ module.exports = async (request, response, config = {}, methods = {}) => {
});

response.end();
return;
}

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

0 comments on commit eaa042d

Please sign in to comment.