$this->parseHeader();
$this->setStatus();
- if ( isset( $this->respHeaders['content-length'] ) ) {
- if ( strlen( $this->content ) < $this->getResponseHeader( 'content-length' ) ) {
- $this->status->fatal( 'http-truncated-body' );
- }
- }
-
return $this->status;
}
'http-curl-error' => 'Error fetching URL: $1',
'http-host-unreachable' => 'Could not reach URL.',
'http-bad-status' => 'There was a problem during the HTTP request: $1 $2',
-'http-truncated-body' => 'The request body was only partially received.',
# Some likely curl errors. More could be added from <http://curl.haxx.se/libcurl/c/libcurl-errors.html>
'upload-curl-error6' => 'Could not reach URL',
If \'scheme\' is difficult to translate, then you could use \'prefix\' instead.',
'http-bad-status' => '$1 is an HTTP error code (e.g. 404), $2 is the HTTP error message (e.g. File Not Found)',
-'http-truncated-body' => 'This is a standard HTTP error message. → Seems the connection closed prematurely. The HTTP response contained a content-length greater than the received body.',
'license' => 'This appears in the upload form for the license drop-down. The header in the file description page is now at {{msg-mw|License-header}}.',
'nolicense' => '{{Identical|None selected}}',
'http-curl-error',
'http-host-unreachable',
'http-bad-status',
- 'http-truncated-body',
),
'upload-curl-errors' => array(