From 7c54c4d7a8df79aab8ce83b40145ec61753b9461 Mon Sep 17 00:00:00 2001 From: Pedro Teixeira Date: Wed, 28 Mar 2012 10:04:53 +0100 Subject: [PATCH] removed commented section and logging output --- lib/intercept.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/intercept.js b/lib/intercept.js index df96791f6..06aff0434 100644 --- a/lib/intercept.js +++ b/lib/intercept.js @@ -48,15 +48,6 @@ function interceptorsFor(options) { options.host = options.hostname; } - // if ( - // options.port && options.host.indexOf(':') < 0 && - // (options.port !== 80 || options.proto !== 'http') && - // (options.port !== 443 || options.proto !== 'https') - // ) { - // options.host += ":" + options.port; - // delete options.port; - // } - basePath = options.proto + '://' + options.host; if ( options.port && options.host.indexOf(':') < 0 && @@ -66,8 +57,6 @@ function interceptorsFor(options) { basePath += ":" + options.port; } - console.log('basePath:', basePath) - return allInterceptors[basePath] || []; }