Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'develop' into develop
  • Loading branch information
albertcht authored Dec 21, 2018
commit d6bd635650f82424c55f4a33618d8f9c5860f4d0
8 changes: 3 additions & 5 deletions src/Transformers/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,10 @@ protected function sendContent()
if ($illuminateResponse instanceof StreamedResponse && property_exists($illuminateResponse, 'output')) {
// TODO Add Streamed Response with output
$this->swooleResponse->end($illuminateResponse->output);
} elseif ($illuminateResponse instanceof BinaryFileResponse) {
$this->swooleResponse->sendfile($illuminateResponse->getFile()->getPathname());
} else {
if ($illuminateResponse instanceof BinaryFileResponse) {
$this->swooleResponse->sendfile($illuminateResponse->getFile()->getPathname());
} else {
$this->swooleResponse->end($illuminateResponse->getContent());
}
$this->sendInChunk($illuminateResponse->getContent());
}
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.