We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.createServer
1 parent b8c27ed commit 8a88774Copy full SHA for 8a88774
lib/node-http-proxy.js
@@ -74,6 +74,7 @@ exports.createServer = function () {
74
// **NEED MORE HERE!!!**
75
//
76
args.forEach(function (arg) {
77
+ arg = Number(arg) || arg;
78
switch (typeof arg) {
79
case 'string': host = arg; break;
80
case 'number': port = arg; break;
0 commit comments