aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-11-08 13:09:05 +0100
committerM. Dent <dentm42@gmail.com>2018-11-08 13:09:05 +0100
commite35f5d3c9384dba1fd920c9c08dba5222dbd21c6 (patch)
tree2cbf9cef223cf770f903f4a144f6019154d8ecb7
parent6013814cf497c72646c80769a63689e423423bcd (diff)
parentf4f98e58568c9a48eee6e9e412733a2fba3a9c24 (diff)
downloadvolse-hubzilla-e35f5d3c9384dba1fd920c9c08dba5222dbd21c6.tar.gz
volse-hubzilla-e35f5d3c9384dba1fd920c9c08dba5222dbd21c6.tar.bz2
volse-hubzilla-e35f5d3c9384dba1fd920c9c08dba5222dbd21c6.zip
Merge branch 'fix-photo' into 'dev'
Fix photo See merge request hubzilla/core!1382
-rw-r--r--Zotlabs/Module/Photo.php2
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.