X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHttpFunctions.php;h=1eb8ca52948f4515a2e4bdaaf973d11b4155934e;hb=23376a76c91b26353e5d2f546520002490c761d7;hp=c9dd0c067fe159de33db6054d403bc81a24d33f5;hpb=a9d8a2090579b41d3e533b8829718ce481471b9b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index c9dd0c067f..1eb8ca5294 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -36,8 +36,8 @@ class Http { * Perform an HTTP request * * @param string $method HTTP method. Usually GET/POST - * @param string $url full URL to act on. If protocol-relative, will be expanded to an http:// URL - * @param array $options options to pass to MWHttpRequest object. + * @param string $url Full URL to act on. If protocol-relative, will be expanded to an http:// URL + * @param array $options Options to pass to MWHttpRequest object. * Possible keys for the array: * - timeout Timeout length in seconds * - connectTimeout Timeout for connection, in seconds (curl only) @@ -772,7 +772,7 @@ class CurlHttpRequest extends MWHttpRequest { if ( $this->followRedirects && $this->canFollowRedirects() ) { wfSuppressWarnings(); - if ( ! curl_setopt( $curlHandle, CURLOPT_FOLLOWLOCATION, true ) ) { + if ( !curl_setopt( $curlHandle, CURLOPT_FOLLOWLOCATION, true ) ) { wfDebug( __METHOD__ . ": Couldn't set CURLOPT_FOLLOWLOCATION. " . "Probably safe_mode or open_basedir is set.\n" ); // Continue the processing. If it were in curl_setopt_array,