We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d145152 commit ab37a22Copy full SHA for ab37a22
lib/http-proxy/common.js
@@ -80,7 +80,7 @@ common.setupOutgoing = function(outgoing, options, req, forward) {
80
// Remark: Can we somehow not use url.parse as a perf optimization?
81
//
82
var outgoingPath = !options.toProxy
83
- ? url.parse(req.url).path
+ ? (url.parse(req.url).path || '/')
84
: req.url;
85
86
outgoing.path = common.urlJoin(targetPath, outgoingPath);
0 commit comments