Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Jan 14, 2025
1 parent 88d2231 commit d068481
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/web/ResponseEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ private function afterPrepare(Event $event): void
$this->gzipResponse();
}

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

0 comments on commit d068481

Please sign in to comment.