Skip to content

Commit f597c1d

Browse files
authored
Update index.js
1 parent a3cdd94 commit f597c1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function HttpProxyMiddleware(context, opts) {
119119
if (pathRewriter) {
120120
var path = pathRewriter(req.url, req);
121121

122-
if (path !== false) {
122+
if (typeof path === 'string') {
123123
req.url = path;
124124
} else {
125125
logger.info('[HPM] pathRewrite: No rewritten path found. (%s)', req.url);

0 commit comments

Comments
 (0)