We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e5e47f commit 368624dCopy full SHA for 368624d
src/Response.php
@@ -379,6 +379,15 @@ public function send()
379
{
380
$this->sendHeaders()->sendContent();
381
382
+ if (class_exists('Leaf\Eien\Server')) {
383
+ \Leaf\Config::set('response.data', [
384
+ 'headers' => $this->headers,
385
+ 'body' => strpos($this->headers['Content-Disposition'] ?? '', 'attachment') !== false
386
+ ? readfile($this->content)
387
+ : $this->content,
388
+ ]);
389
+ }
390
+
391
if (\function_exists('fastcgi_finish_request')) {
392
fastcgi_finish_request();
393
} elseif (\function_exists('litespeed_finish_request')) {
0 commit comments