Treat truncated HTTP requests as errors.
authorPlatonides <platonides@gmail.com>
Mon, 7 May 2012 21:13:04 +0000 (23:13 +0200)
committerAntoine Musso <hashar@free.fr>
Mon, 7 May 2012 21:46:54 +0000 (14:46 -0700)
commitded6170bd2072971f72db794f3ab1625a8e13475
tree279fec90ba61df4499da3a8d2d6e0a31d193ce3a
parente87ff996cc261e46abd2f321100c9da231bf7dbc
Treat truncated HTTP requests as errors.

We detect such prematurely ended request when there's a Content-Length
greater than the body we got. A strict comparison would easily fail
when there was a content encoding layer, but hopefully we won't hit
a compressed request _larger_ than the original content.

See http://thread.gmane.org/gmane.org.wikimedia.mediawiki/39622
for breakage caused by truncated HTTP replies.

Change-Id: I71418424730d46a781bde5cbfda8038457ec79c5
includes/HttpFunctions.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc