From dbea1b60eba844545af09a728a60bc9be29b56b7 Mon Sep 17 00:00:00 2001 From: Joe Gillotti Date: Wed, 18 Feb 2015 19:13:46 -0800 Subject: [PATCH] Replace curl magic number with equivalent constant 60 -> CURLE_SSL_CACERT --- src/snapchat_agent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapchat_agent.php b/src/snapchat_agent.php index 73f8d77..c80a921 100644 --- a/src/snapchat_agent.php +++ b/src/snapchat_agent.php @@ -307,7 +307,7 @@ public function post($endpoint, $data, $params, $multipart = FALSE) { // If cURL doesn't have a bundle of root certificates handy, we provide // ours (see http://curl.haxx.se/docs/sslcerts.html). - if (curl_errno($ch) == 60) { + if (curl_errno($ch) == CURLE_SSL_CACERT) { curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/ca_bundle.crt'); $result = curl_exec($ch); }