Permalink
Browse files

Using defined() rather than version_compare for CURLOPT_PROTOCOLS

  • Loading branch information...
1 parent ab56556 commit 48563e2d31ed6e71736c2a64e8017ac4945e81c4 @mtdowling mtdowling committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Curl/CurlHandle.php
View
@@ -71,7 +71,7 @@ public static function factory(RequestInterface $request)
CURLOPT_SSL_VERIFYHOST => 2
);
- if (version_compare(CurlVersion::getInstance()->get('version'), '7.19.4', '>=')) {
+ if (defined('CURLOPT_PROTOCOLS')) {
// Allow only HTTP and HTTPS protocols
$curlOptions[CURLOPT_PROTOCOLS] = CURLPROTO_HTTP | CURLPROTO_HTTPS;
}

0 comments on commit 48563e2

Please sign in to comment.