diff --git a/lib/http-api.js b/lib/http-api.js index 14074e0c1..a3390bea1 100644 --- a/lib/http-api.js +++ b/lib/http-api.js @@ -144,10 +144,6 @@ module.exports.MatrixHttpApi.prototype = { "Expected callback to be a function but got " + typeof callback ); } - var queryParams = { - filename: file.name, - access_token: this.opts.accessToken - }; var defer = q.defer(); // browser-request doesn't support File objects because it deep-copies // the options using JSON.parse(JSON.stringify(options)). Instead of @@ -162,7 +158,7 @@ module.exports.MatrixHttpApi.prototype = { var timeout_fn = function() { xhr.abort(); cb(new Error('Timeout')); - } + }; xhr.timeout_timer = setTimeout(timeout_fn, 30000);