Merge pull request #2435 from alpe12/patch-1

Reduce the transfered image size when using SQLite
This commit is contained in:
mikeprimm 2019-02-03 22:17:21 -06:00 committed by GitHub
commit b36e59c6a0
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');