diff options
author | Mario <mario@mariovavti.com> | 2018-11-08 12:13:00 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-11-08 12:13:00 +0100 |
commit | f4f98e58568c9a48eee6e9e412733a2fba3a9c24 (patch) | |
tree | 2cbf9cef223cf770f903f4a144f6019154d8ecb7 | |
parent | e0a0570cc4409943d546ba114f5e9ba5e4aaa5d1 (diff) | |
parent | dc0335d1d56f1d76fa170ef0b222560176e074b5 (diff) | |
download | volse-hubzilla-f4f98e58568c9a48eee6e9e412733a2fba3a9c24.tar.gz volse-hubzilla-f4f98e58568c9a48eee6e9e412733a2fba3a9c24.tar.bz2 volse-hubzilla-f4f98e58568c9a48eee6e9e412733a2fba3a9c24.zip |
Merge branch 'patch-1' into 'fix-photo'
Correct "Content-Length:" calculation added
See merge request mario/core!1
-rw-r--r-- | Zotlabs/Module/Photo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index de11b41c7..e218d1c53 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -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. |