changed headers
This commit is contained in:
parent
63ccec083e
commit
6cec87eb14
2
api.php
2
api.php
@ -17,7 +17,7 @@ $api->any('/', function ($requst) {
|
||||
|
||||
if (file_exists($attachment_location)) {
|
||||
$headers[] = $_SERVER["SERVER_PROTOCOL"] . " 200 OK";
|
||||
$headers[] = "Cache-Control: public");
|
||||
$headers[] = "Cache-Control: public";
|
||||
$headers[] = "Content-Type: application/text";
|
||||
$headers[] = "Content-Transfer-Encoding: Binary";
|
||||
$headers[] = "Content-Length:".filesize($attachment_location);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user