dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "cleanup callback in usort call"
[lhc/web/wiklou.git]
/
includes
/
HttpFunctions.php
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
fbae861
..
66b6e72
100644
(file)
--- a/
includes/HttpFunctions.php
+++ b/
includes/HttpFunctions.php
@@
-156,7
+156,7
@@
class Http {
*
* file:// should not be allowed here for security purpose (r67684)
*
*
* file:// should not be allowed here for security purpose (r67684)
*
- * @
fixme
this is wildly inaccurate and fails to actually check most stuff
+ * @
todo FIXME
this is wildly inaccurate and fails to actually check most stuff
*
* @param $uri Mixed: URI to check for validity
* @return Boolean
*
* @param $uri Mixed: URI to check for validity
* @return Boolean
@@
-778,12
+778,6
@@
class CurlHttpRequest extends MWHttpRequest {
$this->parseHeader();
$this->setStatus();
$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;
}
return $this->status;
}