diff --git a/lib/request.js b/lib/request.js index 7b8b733..806520e 100644 --- a/lib/request.js +++ b/lib/request.js @@ -14,6 +14,8 @@ var Request = module.exports = function (xhr, params) { + (params.port ? ':' + params.port : '') + (params.path || '/') ; + + if (params.href !== 'undefined' && params.protocol === 'file:') self.uri = params.href; if (typeof params.withCredentials === 'undefined') { params.withCredentials = true;