summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-11-24 11:14:45 -0800
committerBharat Mediratta <bharat@menalto.com>2011-11-24 11:14:45 -0800
commitcb98db1bcf794c07166e0c198a6b20dbac8756a0 (patch)
tree4b1a5ef033df6e7b570e49b21bdd730f5492d297
parent94eef9eaecbdcc98f4b5adb0da939480a324b0ad (diff)
parent5b969fd069e239e4126b52377518ac98968b1aab (diff)
Merge branch 'patch-1' of git://github.com/ffchung/gallery3
-rw-r--r--modules/gallery/controllers/combined.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php
index ef640bd9..fe177569 100644
--- a/modules/gallery/controllers/combined.php
+++ b/modules/gallery/controllers/combined.php
@@ -67,6 +67,8 @@ class Combined_Controller extends Controller {
if ($use_gzip && $content = $cache->get("{$key}_gz")) {
header("Content-Encoding: gzip");
+ header("Content-Length: ".strlen($content));
+ header("Vary: Accept-Encoding");
} else {
// Fall back to non-gzipped if we have to
$content = $cache->get($key);