Skip to content
Permalink
Browse files

[fix] Convert strings to numbers if possible in `.createServer`

Fixes #321
  • Loading branch information...
Southern committed Nov 6, 2012
1 parent b8c27ed commit 8a88774ecf85cc3c259bb50342a82c5725c05f6a
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/node-http-proxy.js
@@ -74,6 +74,7 @@ exports.createServer = function () {
// **NEED MORE HERE!!!**
//
args.forEach(function (arg) {
arg = Number(arg) || arg;
switch (typeof arg) {
case 'string': host = arg; break;
case 'number': port = arg; break;

0 comments on commit 8a88774

Please sign in to comment.
You can’t perform that action at this time.