Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Sep 13, 2016
1 parent a3cdd94 commit f597c1d
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 !== false) {
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 f597c1d

Please sign in to comment.