X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHttpFunctions.php;h=201a9e5a8deee4f02da3ed2b358172d226a9ba85;hb=8a023885009927ee65007669319cb4dd43baf663;hp=054a836c04a058fd3457ee35e61e9d0c7ae4e3fa;hpb=08d795969b7ac6bfc945829fa2150e8fa9f280ae;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 054a836c04..201a9e5a8d 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -1,4 +1,26 @@ parseHeader(); $this->setStatus(); - if ( isset( $this->respHeaders['content-length'] ) ) { - if ( strlen( $this->content ) < $this->respHeaders['content-length'] ) { - $this->status->fatal( 'http-truncated-body' ); - } - } - return $this->status; } @@ -896,7 +912,7 @@ class PhpHttpRequest extends MWHttpRequest { return $this->status; } - // If everything went OK, or we recieved some error code + // If everything went OK, or we received some error code // get the response body content. if ( $this->status->isOK() || (int)$this->respStatus >= 300) {