diff --git a/api.php b/api.php index 59230ee..c5a43f7 100644 --- a/api.php +++ b/api.php @@ -18,11 +18,11 @@ $api->any('/', function ($requst) { $headers[] = "Content-Transfer-Encoding: Binary"; $headers[] = "Content-Length:".filesize($filename); $headers[] = "Content-Disposition: attachment; filename={$filename}"; - die(); + // die(); } else { die("Error: File not found."); } - return new Response(200, $headers, $filename); + return new Response(200, $headers, readfile($filename)); }); $api->get('/hello/{name}', function ($requst, $name) {