Skip to content

Commit c36184d

Browse files
authored
Merge branch 'master' into package.json-files
2 parents 161a63e + 0cb6839 commit c36184d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
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) {
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)