diff options
author | phani00 <phani00@gmail.com> | 2018-12-17 15:18:24 +0000 |
---|---|---|
committer | phani00 <phani00@gmail.com> | 2018-12-17 15:18:24 +0000 |
commit | d80b8ff30fd1bbd6d02e685bdfac4c5bcded9fa8 (patch) | |
tree | 3cd13897a9db5aba8b56c570c0cf5771e6bb22b2 /Zotlabs/Module/Sslify.php | |
parent | 70a766171117fd94c7e0ca228d3b879f7f307e5f (diff) | |
parent | d190b1995b0886b430beb5dac1a1e72582b9ad2b (diff) | |
download | volse-hubzilla-d80b8ff30fd1bbd6d02e685bdfac4c5bcded9fa8.tar.gz volse-hubzilla-d80b8ff30fd1bbd6d02e685bdfac4c5bcded9fa8.tar.bz2 volse-hubzilla-d80b8ff30fd1bbd6d02e685bdfac4c5bcded9fa8.zip |
Merge branch 'dev' into dark-fix-dev
Diffstat (limited to 'Zotlabs/Module/Sslify.php')
-rw-r--r-- | Zotlabs/Module/Sslify.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Zotlabs/Module/Sslify.php b/Zotlabs/Module/Sslify.php index 2891f3691..37be4423b 100644 --- a/Zotlabs/Module/Sslify.php +++ b/Zotlabs/Module/Sslify.php @@ -12,10 +12,16 @@ class Sslify extends \Zotlabs\Web\Controller { list($k,$v) = array_map("trim", explode(":", trim($l), 2)); $hdrs[strtolower($k)] = $v; } - if (array_key_exists('content-type', $hdrs)) { - $type = $hdrs['content-type']; - header('Content-Type: ' . $type); - } + + if (array_key_exists('content-type', $hdrs)) + header('Content-Type: ' . $hdrs['content-type']); + if (array_key_exists('last-modified', $hdrs)) + header('Last-Modified: ' . $hdrs['last-modified']); + if (array_key_exists('cache-control', $hdrs)) + header('Cache-Control: ' . $hdrs['cache-control']); + if (array_key_exists('expires', $hdrs)) + header('Expires: ' . $hdrs['expires']); + echo $x['body']; killme(); |