changed headers

This commit is contained in:
prototrip 2021-08-07 14:14:18 +03:00
parent 63ccec083e
commit 6cec87eb14

View File

@ -17,7 +17,7 @@ $api->any('/', function ($requst) {
if (file_exists($attachment_location)) { if (file_exists($attachment_location)) {
$headers[] = $_SERVER["SERVER_PROTOCOL"] . " 200 OK"; $headers[] = $_SERVER["SERVER_PROTOCOL"] . " 200 OK";
$headers[] = "Cache-Control: public"); $headers[] = "Cache-Control: public";
$headers[] = "Content-Type: application/text"; $headers[] = "Content-Type: application/text";
$headers[] = "Content-Transfer-Encoding: Binary"; $headers[] = "Content-Transfer-Encoding: Binary";
$headers[] = "Content-Length:".filesize($attachment_location); $headers[] = "Content-Length:".filesize($attachment_location);