Add Content-Length header to thumb.php error responses
authorOri Livneh <ori@wikimedia.org>
Mon, 6 Jul 2015 20:49:45 +0000 (13:49 -0700)
committerOri.livneh <ori@wikimedia.org>
Mon, 6 Jul 2015 20:52:43 +0000 (20:52 +0000)
commit0ee9e717f49b9e15bd63fd66f3d0967939c35b05
tree3d3d4804006f0535c2783da0769d23e06f072187
parentde25144a0b6850bdcf0ec5fa1cfa0b85fd1c7666
Add Content-Length header to thumb.php error responses

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.

Change-Id: I977387bf3e039926df58e3e5a14d0d0bd55201c4
thumb.php