Skip to content

Commit

Permalink
Merge pull request #66 from craftcms/feature/better-stream-support
Browse files Browse the repository at this point in the history
Better Stream Support
  • Loading branch information
timkelty authored Jan 14, 2025
2 parents e602f7b + c8280cd commit 88d2231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/ResponseEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function afterPrepare(Event $event): void
$this->gzipResponse();
}

if ($this->response->stream) {
if ($this->response->stream && str_starts_with($this->response->getContentType(), 'text/')) {
$this->serveBinaryFromS3();
}
}
Expand Down

0 comments on commit 88d2231

Please sign in to comment.