Skip to content

Commit

Permalink
Merge branch 'master' into package.json-files
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai authored Sep 20, 2016
2 parents 161a63e + 0cb6839 commit c36184d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function HttpProxyMiddleware(context, opts) {
if (pathRewriter) {
var path = pathRewriter(req.url, req);

if (path) {
if (typeof path === 'string') {
req.url = path;
} else {
logger.info('[HPM] pathRewrite: No rewritten path found. (%s)', req.url);
Expand Down

0 comments on commit c36184d

Please sign in to comment.