Test client detect png request based on regex
This commit is contained in:
parent
a444b80c96
commit
ed84ed8475
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user