Another sql.php fix

This commit is contained in:
Lukas Rieger (Blue) 2024-06-04 00:24:10 +02:00
parent 33d40b888a
commit 8f88dd7fd9
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -187,7 +187,7 @@ if (startsWith($path, "/maps/")) {
// return result
if ($line = $statement->fetch()) {
header("Cache-Control: public,max-age=86400");
compressionHeader($line["compression"]);
compressionHeader($line["key"]);
if ($lod === 0) {
header("Content-Type: application/octet-stream");
@ -233,7 +233,7 @@ if (startsWith($path, "/maps/")) {
if ($line = $statement->fetch()) {
header("Cache-Control: public,max-age=86400");
header("Content-Type: ".getMimeType($mapPath));
compressionHeader($line["compression"]);
compressionHeader($line["key"]);
send($line["data"]);
exit;