diff options
author | szaimen <szaimen@e.mail.de> | 2022-11-01 14:03:48 +0100 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2022-11-02 11:13:34 +0100 |
commit | dd8774389e21b59c07882580356d51de018fe867 (patch) | |
tree | 8abfe35c70004ca0d6e4df70098cf63cb087e6ec /lib/private/legacy | |
parent | 075a87670d4157086974d84972553914078c203b (diff) | |
download | nextcloud-server-dd8774389e21b59c07882580356d51de018fe867.tar.gz nextcloud-server-dd8774389e21b59c07882580356d51de018fe867.zip |
remove 32-bit workarounds
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/OC_Response.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/private/legacy/OC_Response.php b/lib/private/legacy/OC_Response.php index e4525fe9e10..b849710e90b 100644 --- a/lib/private/legacy/OC_Response.php +++ b/lib/private/legacy/OC_Response.php @@ -52,19 +52,6 @@ class OC_Response { * @param string|int|float $length Length to be sent */ public static function setContentLengthHeader($length) { - if (PHP_INT_SIZE === 4) { - if ($length > PHP_INT_MAX && stripos(PHP_SAPI, 'apache') === 0) { - // Apache PHP SAPI casts Content-Length headers to PHP integers. - // This enforces a limit of PHP_INT_MAX (2147483647 on 32-bit - // platforms). So, if the length is greater than PHP_INT_MAX, - // we just do not send a Content-Length header to prevent - // bodies from being received incompletely. - return; - } - // Convert signed integer or float to unsigned base-10 string. - $lfh = new \OC\LargeFileHelper; - $length = $lfh->formatUnsignedInteger($length); - } header('Content-Length: '.$length); } |