Merge branch 'patch-1' into 'fix-photo'

Correct "Content-Length:" calculation added

See merge request mario/core!1
This commit is contained in:
Mario 2018-11-08 12:13:00 +01:00
commit f4f98e5856

View File

@ -262,7 +262,7 @@ class Photo extends \Zotlabs\Web\Controller {
}
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $modified) . " GMT");
header("Content-Length: " . $filesize);
header("Content-Length: " . (isset($filesize) ? $filesize : strlen($data)));
// If it's a file resource, stream it.