mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 08:18:59 +01:00
Fix: request headers support only strings
This commit is contained in:
parent
e33477684b
commit
b2d72f1975
@ -104,9 +104,9 @@ final class ResponseInfo
|
||||
if ($seek_start > 0 || $seek_end < $size - 1) {
|
||||
$this->code = HttpStatus::PARTIAL_CONTENT;
|
||||
$this->headers['Content-Range'] = "bytes $seek_start-$seek_end/$size";
|
||||
$this->headers['Content-Length'] = $seek_end - $seek_start + 1;
|
||||
$this->headers['Content-Length'] = (string)($seek_end - $seek_start + 1);
|
||||
} elseif ($size > 0) {
|
||||
$this->headers['Content-Length'] = $size;
|
||||
$this->headers['Content-Length'] = (string)$size;
|
||||
}
|
||||
$this->headers['Content-Type'] = $messageMedia['mime'];
|
||||
$this->headers['Cache-Control'] = 'max-age=31556926';
|
||||
|
Loading…
Reference in New Issue
Block a user