mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-18 21:41:35 +01:00
Another sql.php fix
This commit is contained in:
parent
33d40b888a
commit
8f88dd7fd9
@ -187,7 +187,7 @@ if (startsWith($path, "/maps/")) {
|
|||||||
// return result
|
// return result
|
||||||
if ($line = $statement->fetch()) {
|
if ($line = $statement->fetch()) {
|
||||||
header("Cache-Control: public,max-age=86400");
|
header("Cache-Control: public,max-age=86400");
|
||||||
compressionHeader($line["compression"]);
|
compressionHeader($line["key"]);
|
||||||
|
|
||||||
if ($lod === 0) {
|
if ($lod === 0) {
|
||||||
header("Content-Type: application/octet-stream");
|
header("Content-Type: application/octet-stream");
|
||||||
@ -233,7 +233,7 @@ if (startsWith($path, "/maps/")) {
|
|||||||
if ($line = $statement->fetch()) {
|
if ($line = $statement->fetch()) {
|
||||||
header("Cache-Control: public,max-age=86400");
|
header("Cache-Control: public,max-age=86400");
|
||||||
header("Content-Type: ".getMimeType($mapPath));
|
header("Content-Type: ".getMimeType($mapPath));
|
||||||
compressionHeader($line["compression"]);
|
compressionHeader($line["key"]);
|
||||||
|
|
||||||
send($line["data"]);
|
send($line["data"]);
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user