8000 Fix https://github.com/nodejitsu/node-http-proxy/issues/747 · sgml/node-http-proxy@ab37a22 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab37a22

Browse files
committed
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

Lines changed: 1 addition & 1 deletion
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)
0