Skip to content

Commit d7aff67

Browse files
andreaswolfirnnr
authored andcommitted
[BUGFIX] Explicitly set encoding header to "none"
This overwrites the "Content-Encoding: gzip" header that is usually sent by TYPO3 when gzip is activated. This header would require that the content really is gzip-ed (which it is not in this case). This lets e.g. Varnish 3.0 fail when trying to decode the response. Change-Id: Iaf41aff73521638945214ee1d15b788f5e5e4cb8 Releases: master
1 parent a8f0114 commit d7aff67

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Classes/IndexQueue/PageIndexerResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public function getActionResult($action = NULL) {
8484
* @return void
8585
*/
8686
public function sendHeaders() {
87+
// This overwrites the "Content-Encoding: gzip" header that is usually sent by TYPO3 by default. This header
88+
// would require that the content really is gzip-ed (which it is not). This lets e.g. Varnish 3.0
89+
// fail when trying to decode the response.
90+
header('Content-Encoding: none');
91+
8792
header('Content-Length: ' . strlen($this->getContent()));
8893
}
8994

0 commit comments

Comments
 (0)