Skip to content

Commit

Permalink
完善
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Nov 18, 2021
1 parent 294d327 commit e29d83a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/concerns/InteractsWithHttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected function sendContent(Response $res, \think\Response $response)
$this->setHeader($res, $response->getHeader());

$content = $response->getContent();
if ($content > 0) {
if ($content) {
$contentSize = strlen($content);
$chunkSize = 8192;

Expand Down
2 changes: 1 addition & 1 deletion src/response/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function setFile($file, string $contentDisposition = null, bool $autoEtag
return $this;
}

protected function setAutoContentType()
public function setAutoContentType()
{
$finfo = finfo_open(FILEINFO_MIME_TYPE);

Expand Down

0 comments on commit e29d83a

Please sign in to comment.