Test client detect png request based on regex

This commit is contained in:
Raul Ochoa 2016-03-17 12:45:05 +01:00
parent a444b80c96
commit ed84ed8475

View File

@ -198,7 +198,7 @@ TestClient.prototype.getTile = function(z, x, y, params, callback) {
}
};
var isPng = format === 'png' || format === 'torque.png';
var isPng = format.match(/png$/);
if (isPng) {
request.encoding = 'binary';