X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHttpFunctions.php;h=32f77dcfab41ee5fd492b0f8e776997388790909;hb=0177eab9d7384b474b5e9c69b902b21dfc608520;hp=6adef844a2a9ae8281b54bff7dc84d8b1cb3d221;hpb=1122ca5f8750a7e23e3f00ad7c03a19ef25f4c17;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 6adef844a2..32f77dcfab 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -1,4 +1,26 @@ url = wfExpandUrl( $url, PROTO_HTTP ); @@ -243,6 +265,7 @@ class MWHttpRequest { * Generate a new request object * @param $url String: url to use * @param $options Array: (optional) extra params to pass (see Http::request()) + * @throws MWException * @return CurlHttpRequest|PhpHttpRequest * @see MWHttpRequest::__construct */ @@ -371,6 +394,7 @@ class MWHttpRequest { * will be aborted. * * @param $callback Callback + * @throws MWException */ public function setCallback( $callback ) { if ( !is_callable( $callback ) ) { @@ -890,7 +914,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) {