mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
Fix #1692 Remove Content-Length header on images (HTTP2 compat)
Content-Length header should be the body size after compression (if enabled) and not the size of the original body. In HTTP1.1 such invalid value is not problematic but in HTTP2 it prevents images to display.
This commit is contained in:
parent
e909cb19bb
commit
1b66ca73f9
1 changed files with 1 additions and 2 deletions
1
i.php
1
i.php
|
@ -349,7 +349,6 @@ function send_derivative($expires)
|
||||||
{
|
{
|
||||||
header('Expires: '.gmdate('D, d M Y H:i:s', $expires).' GMT');
|
header('Expires: '.gmdate('D, d M Y H:i:s', $expires).' GMT');
|
||||||
}
|
}
|
||||||
header('Content-length: '.$fstat['size']);
|
|
||||||
header('Connection: close');
|
header('Connection: close');
|
||||||
|
|
||||||
$ctype="application/octet-stream";
|
$ctype="application/octet-stream";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue