Allow for existence of query-string parameters in URL

This commit is contained in:
Jonathan Mahoney
2013-10-09 13:00:50 +01:00
parent d3991ee672
commit b632984874

View File

@@ -105,7 +105,8 @@ UrlResolver.prototype._resolve = function () {
// -----------------
UrlResolver.prototype._download = function () {
var file = path.join(this._tempDir, path.basename(this._source));
var fileName = url.parse(path.basename(this._source)).pathname;
var file = path.join(this._tempDir, fileName);
var reqHeaders = {};
var that = this;