Skip to content

Commit cf3526f

Browse files
committed
remove that port from the pattern (when is that ever useful?)
Signed-off-by: Michael Sprauer <[email protected]>
1 parent 25bf89c commit cf3526f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/middleware/serveProxies.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// eavily inspired by https://github.com/SAP/connect-openui5/blob/master/lib/proxy.js
1+
// heavily inspired by https://github.com/SAP/connect-openui5/blob/master/lib/proxy.js
22
const url = require("url");
33
const httpProxy = require("http-proxy");
44

@@ -26,11 +26,6 @@ function getProxyUri(uri) {
2626
// Remove leading * and make sure to have exact one leading dot (.)
2727
pattern = pattern.replace(/^[*]+/, "").replace(/^\.*/, ".");
2828

29-
// add port if no specified
30-
if (pattern.indexOf(":") === -1) {
31-
pattern += ":" + port;
32-
}
33-
3429
// if host ends with pattern, no proxy should be used
3530
if (canonicalHost.indexOf(pattern) === canonicalHost.length - pattern.length) {
3631
return null;

0 commit comments

Comments
 (0)