We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdf48be + 5ba25aa commit 787370eCopy full SHA for 787370e
bin/node-http-proxy
@@ -64,7 +64,7 @@ if (typeof target === 'string') location = target.split(':');
64
//
65
var server;
66
if (location) {
67
- var targetPort = location.length === 1 ? 80 : location[1];
+ var targetPort = location.length === 1 ? 80 : parseInt(location[1]);
68
server = httpProxy.createServer(targetPort, location[0], config);
69
}
70
else if (config.router) {
0 commit comments