Fixed "Notice: Undefined variable: ch" on curl_setopt cookieFile

This commit is contained in:
cristianp6
2015-04-03 11:16:17 +02:00
parent 8da79e7898
commit a1ed45be55

View File

@@ -374,8 +374,8 @@ class Request
} }
if (self::$cookieFile) { if (self::$cookieFile) {
curl_setopt($ch, CURLOPT_COOKIEFILE, self::$cookieFile); curl_setopt(self::$handle, CURLOPT_COOKIEFILE, self::$cookieFile);
curl_setopt($ch, CURLOPT_COOKIEJAR, self::$cookieFile); curl_setopt(self::$handle, CURLOPT_COOKIEJAR, self::$cookieFile);
} }
// supporting deprecated http auth method // supporting deprecated http auth method