diff --git a/lib/hub/index.js b/lib/hub/index.js index 5cf7d118..d08a0001 100644 --- a/lib/hub/index.js +++ b/lib/hub/index.js @@ -207,15 +207,19 @@ Hub.prototype.generateId = function () { * @method _handleTestRequest * @private */ -Hub.prototype._handleTestRequest = function (server, agentId, batchId, filename) { - var batch = this.batchManager.getBatch(batchId); +Hub.prototype._handleTestRequest = function (server, agentId, batchId, path) { + var batch = this.batchManager.getBatch(batchId), + file = urlParser.parse(path).pathname; if (!batch) { server.res.message(404, "Batch not found."); return; } - batch.handleFileRequest(server, agentId, filename); + this.debug("_handleTestRequest: path =", path, + "file =", file); + + batch.handleFileRequest(server, agentId, file); }; Hub.prototype._onTowerConnection = function (socket) {