OCA\Richdocuments\DownloadResponse::sendRangeNotSatisfiable PHP Méthode

sendRangeNotSatisfiable() protected méthode

Send 416 if we can't satisfy the requested ranges
protected sendRangeNotSatisfiable ( integer $filesize )
$filesize integer
    protected function sendRangeNotSatisfiable($filesize)
    {
        $this->setStatus(Http::STATUS_REQUEST_RANGE_NOT_SATISFIABLE);
        $this->addHeader('Content-Range', 'bytes */' . $filesize);
        // Required in 416.
        return '';
    }