protected function getNewHeaders(array $files, $content_range)
    {
        $headers = [
            'pragma' => 'no-cache',
            'cache-control' => 'no-store, no-cache, must-revalidate',
            'content-disposition' => 'inline; filename="files.json"',
            'x-content-type-options' => 'nosniff'
        ];

        if ($content_range && is_object($files[0]) && isset($files[0]->size) && $files[0]->size) {
            $headers['range'] = '0-' . ($this->fixIntegerOverflow($files[0]->size) - 1);
        }

        return $headers;
    }
protected function getNewHeaders(array $files, $content_range)
    {
        $headers = [
            'pragma' => 'no-cache',
            'cache-control' => 'no-store, no-cache, must-revalidate',
            'content-disposition' => 'inline; filename="files.json"',
            'x-content-type-options' => 'nosniff'
        ];

        if ($content_range && is_object($files[0]) && isset($files[0]->size) && $files[0]->size) {
            $headers['range'] = '0-' . ($this->fixIntegerOverflow($files[0]->size) - 1);
        }

        return $headers;
    }
protected function getNewHeaders ( array $ files , $ content_range ) { $ headers = [ 'pragma' => 'no-cache' , 'cache-control' => 'no-store, no-cache, must-revalidate' , 'content-disposition' => 'inline; filename="files.json"' , 'x-content-type-options' => 'nosniff' ] ; if ( $ content_range && is_object ( $ files [ 0 ] ) && isset ( $ files [ 0 ] -> size ) && $ files [ 0 ] -> size ) { $ headers [ 'range' ] = '0-' . ( $ this -> fixIntegerOverflow ( $ files [ 0 ] -> size ) - 1 ) ; } return $ headers ; }
Generate headers for response
@param  array $files
@param  array $content_range
@return array
Generate headers for response