Reduce the transfered image size when using SQLite

https://github.com/webbukkit/dynmap/issues/2415
This commit is contained in:
alpe12 2019-01-31 21:03:11 -02:00 committed by GitHub
parent 648e11bb53
commit 7f8f44737e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');