Skip to content
Browse files

fixed :port/ test

  • Loading branch information...
1 parent 22a05b1 commit 9a8d3b9380390a8c6a7c69348cf945dd7c3ce7ee @substack committed Feb 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/parse_args.js
  2. +1 −1 test/bounce_url.js
View
2 lib/parse_args.js
@@ -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;
View
2 test/bounce_url.js
@@ -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) {

0 comments on commit 9a8d3b9

Please sign in to comment.
Something went wrong with that request. Please try again.