From 7f8f44737e49eb45365cebd5056683be71eb28b8 Mon Sep 17 00:00:00 2001 From: alpe12 Date: Thu, 31 Jan 2019 21:03:11 -0200 Subject: [PATCH] Reduce the transfered image size when using SQLite https://github.com/webbukkit/dynmap/issues/2415 --- .../main/resources/extracted/web/standalone/SQLite_tiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynmapCore/src/main/resources/extracted/web/standalone/SQLite_tiles.php b/DynmapCore/src/main/resources/extracted/web/standalone/SQLite_tiles.php index 148c0ecd..c5c9a5e0 100644 --- a/DynmapCore/src/main/resources/extracted/web/standalone/SQLite_tiles.php +++ b/DynmapCore/src/main/resources/extracted/web/standalone/SQLite_tiles.php @@ -97,7 +97,7 @@ if (isset($row[1])) { } header('ETag: \'' . $row[2] . '\''); header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $row[3]/1000) . ' GMT'); - echo $row[0]; + echo rtrim($row[0], "\0"); } else { header('Location: ../images/blank.png');