Update Photo.php

This commit is contained in:
Max Kostikov 2018-11-06 13:51:01 +01:00
parent 1828b6daab
commit 3491c488d3

View File

@ -252,6 +252,8 @@ class Photo extends \Zotlabs\Web\Controller {
}
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $modified) . " GMT");
header("Content-Length: " . strlen($data));
// If it's a file resource, stream it.
@ -268,8 +270,6 @@ class Photo extends \Zotlabs\Web\Controller {
}
}
else {
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $modified) . " GMT");
header("Content-Length: " . strlen($data));
echo $data;
}