Skip to content

Commit ab37a22

Browse files
committed
Fix #747
1 parent d145152 commit ab37a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/http-proxy/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
8080
// Remark: Can we somehow not use url.parse as a perf optimization?
8181
//
8282
var outgoingPath = !options.toProxy
83-
? url.parse(req.url).path
83+
? (url.parse(req.url).path || '/')
8484
: req.url;
8585

8686
outgoing.path = common.urlJoin(targetPath, outgoingPath);

0 commit comments

Comments
 (0)