]> source.dussan.org Git - nextcloud-server.git/commit
Add OC_Response::setContentLengthHeader() for Apache PHP SAPI workaround.
authorAndreas Fischer <bantu@owncloud.com>
Thu, 26 Mar 2015 15:24:15 +0000 (16:24 +0100)
committerAndreas Fischer <bantu@owncloud.com>
Thu, 26 Mar 2015 15:37:38 +0000 (16:37 +0100)
commit0f58315543a6f3b87d4376cea493c13645687bc2
treef273acf222a799270a614ae2eab28f2a148f6b9e
parent0d786c381b8d4656e6bbcb5ef2b33e718ea639eb
Add OC_Response::setContentLengthHeader() for Apache PHP SAPI workaround.

Do not send Content-Length headers with a value larger than PHP_INT_MAX
(2147483647) on Apache PHP SAPI 32-bit. PHP will eat them and send 2147483647
instead.

When X-Sendfile is enabled, Apache will send a correct Content-Length header,
even for files larger than 2147483647 bytes. When X-Sendfile is not enabled,
ownCloud will not send a Content-Length header. This prevents progress bars
from working, but allows the actual transfer to work properly.
apps/files/download.php
apps/files_versions/download.php
lib/private/files.php
lib/private/response.php
lib/public/response.php