We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdf48be commit 5ba25aaCopy full SHA for 5ba25aa
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