From a1ed45be55e1679428c7a7db7a447e879e22de56 Mon Sep 17 00:00:00 2001 From: cristianp6 Date: Fri, 3 Apr 2015 11:16:17 +0200 Subject: [PATCH] Fixed "Notice: Undefined variable: ch" on curl_setopt cookieFile --- src/Unirest/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Unirest/Request.php b/src/Unirest/Request.php index b95bb89..ff83782 100644 --- a/src/Unirest/Request.php +++ b/src/Unirest/Request.php @@ -374,8 +374,8 @@ class Request } if (self::$cookieFile) { - curl_setopt($ch, CURLOPT_COOKIEFILE, self::$cookieFile); - curl_setopt($ch, CURLOPT_COOKIEJAR, self::$cookieFile); + curl_setopt(self::$handle, CURLOPT_COOKIEFILE, self::$cookieFile); + curl_setopt(self::$handle, CURLOPT_COOKIEJAR, self::$cookieFile); } // supporting deprecated http auth method