From ed84ed8475137b64fdeabb23f28f62e2e182d64f Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 17 Mar 2016 12:45:05 +0100 Subject: [PATCH] Test client detect png request based on regex --- test/support/test-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/support/test-client.js b/test/support/test-client.js index 23a7741e..b79ce9e7 100644 --- a/test/support/test-client.js +++ b/test/support/test-client.js @@ -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';