BryanDavis has uploaded a new change for review. https://gerrit.wikimedia.org/r/227733
Change subject: Add Content-Length header to thumb.php redirects ...................................................................... Add Content-Length header to thumb.php redirects Without the Content-Length header, the response is sent with Transfer-Encoding: Chunked, which is somehow mangled by mod_fastcgi. Varnish then claims the response is malformed and declines to process it, sending the client a 503 instead. This is a followup of 0ee9e717f49b9e15bd63fd66f3d0967939c35b05 Bug: T84842 Change-Id: Ia610a43789e6ff14cfc0964f285bbec39c890152 --- M thumb.php 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/33/227733/1 diff --git a/thumb.php b/thumb.php index 3b7ff43..7d00abe 100644 --- a/thumb.php +++ b/thumb.php @@ -213,6 +213,7 @@ if ( count( $varyHeader ) ) { $response->header( 'Vary: ' . implode( ', ', $varyHeader ) ); } + $response->header( 'Content-Length: 0'); return; } -- To view, visit https://gerrit.wikimedia.org/r/227733 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia610a43789e6ff14cfc0964f285bbec39c890152 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: wmf/1.26wmf16 Gerrit-Owner: BryanDavis <bda...@wikimedia.org> Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits