We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25bf89c commit cf3526fCopy full SHA for cf3526f
lib/middleware/serveProxies.js
@@ -1,4 +1,4 @@
1
-// eavily inspired by https://github.com/SAP/connect-openui5/blob/master/lib/proxy.js
+// heavily inspired by https://github.com/SAP/connect-openui5/blob/master/lib/proxy.js
2
const url = require("url");
3
const httpProxy = require("http-proxy");
4
@@ -26,11 +26,6 @@ function getProxyUri(uri) {
26
// Remove leading * and make sure to have exact one leading dot (.)
27
pattern = pattern.replace(/^[*]+/, "").replace(/^\.*/, ".");
28
29
- // add port if no specified
30
- if (pattern.indexOf(":") === -1) {
31
- pattern += ":" + port;
32
- }
33
-
34
// if host ends with pattern, no proxy should be used
35
if (canonicalHost.indexOf(pattern) === canonicalHost.length - pattern.length) {
36
return null;
0 commit comments