aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-06 13:51:01 +0100
committerMax Kostikov <max@kostikov.co>2018-11-06 13:51:01 +0100
commit3491c488d340b7d5b4e0610398427cb52c05bf8e (patch)
treeb19ba97c46bd757ad5936b7acc69d6087384becc /Zotlabs
parent1828b6daab88041dbc85f11cc4e04efede6c993b (diff)
downloadvolse-hubzilla-3491c488d340b7d5b4e0610398427cb52c05bf8e.tar.gz
volse-hubzilla-3491c488d340b7d5b4e0610398427cb52c05bf8e.tar.bz2
volse-hubzilla-3491c488d340b7d5b4e0610398427cb52c05bf8e.zip
Update Photo.php
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Photo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index 07443bb83..d76fca278 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -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;
}