Merge "HTTP: Fix ded6170bd2072971f72db794f3ab1625a8e13475, which broke all HTTP calls."
[lhc/web/wiklou.git] / includes / HttpFunctions.php
index 8b71334..5b75088 100644 (file)
@@ -757,7 +757,7 @@ class CurlHttpRequest extends MWHttpRequest {
                $this->setStatus();
 
                if ( isset( $this->respHeaders['content-length'] ) ) {
-                       if ( strlen( $this->content ) < $this->respHeaders['content-length'] ) {
+                       if ( strlen( $this->content ) < $this->getResponseHeader( 'content-length' ) ) {
                                $this->status->fatal( 'http-truncated-body' );
                        }
                }