Skip to content

Commit

Permalink
fixed :port/ test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Feb 2, 2012
1 parent 22a05b1 commit 9a8d3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/parse_args.js
Expand Up @@ -18,7 +18,7 @@ module.exports = function (args) {
opts.unix = arg;
}
else if ((m = arg.match(
/^(?:http:\/\/)?([^:\/]+)?(?::(\d+))?(\/.+)?$/
/^(?:http:\/\/)?([^:\/]+)?(?::(\d+))?(\/.*)?$/
)) && (m[1] || m[2] || m[3])) {
opts.host = m[1] || 'localhost';
opts.port = m[2] || 80;
Expand Down
2 changes: 1 addition & 1 deletion test/bounce_url.js
Expand Up @@ -35,7 +35,7 @@ test('bounce opts.path with a full url', function (t) {
test('bounce with a root path', function (t) {
testUrl(t, function (port, req, bounce) {
bounce(':' + port + '/');
});
}, '/');
});

function testUrl (t, bouncer, target) {
Expand Down

0 comments on commit 9a8d3b9

Please sign in to comment.