Skip to content

Commit 30b5202

Browse files
CS fix
1 parent ee3570e commit 30b5202

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BinaryFileResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ public function sendContent()
300300
return $this;
301301
}
302302

303-
$out = fopen('php://output', 'wb');
304-
$file = fopen($this->file->getPathname(), 'rb');
303+
$out = fopen('php://output', 'w');
304+
$file = fopen($this->file->getPathname(), 'r');
305305

306306
stream_copy_to_stream($file, $out, $this->maxlen, $this->offset);
307307

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ public function getContent($asResource = false)
15401540

15411541
$this->content = false;
15421542

1543-
return fopen('php://input', 'rb');
1543+
return fopen('php://input', 'r');
15441544
}
15451545

15461546
if ($currentContentIsResource) {

0 commit comments

Comments
 (0)