Ethon::Easy cookies hacks modified to reflect the new version of Typhoeus

This commit is contained in:
erwanlr
2013-04-11 12:56:40 +02:00
parent dc109f12d8
commit 3245063a74
3 changed files with 5 additions and 5 deletions

View File

@@ -181,8 +181,8 @@ class Browser
params.merge!(ssl_verifypeer: false)
params.merge!(ssl_verifyhost: 0)
params.merge!(cookie_jar: @cache_dir + '/cookie-jar')
params.merge!(cookie_file: @cache_dir + '/cookie-jar')
params.merge!(cookiejar: @cache_dir + '/cookie-jar')
params.merge!(cookiefile: @cache_dir + '/cookie-jar')
params
end

View File

@@ -50,11 +50,11 @@ end
module Ethon
class Easy
module Options
def cookie_jar=(value)
def cookiejar=(value)
Curl.set_option(:cookiejar, value_for(value, :string), handle)
end
def cookie_file=(value)
def cookiefile=(value)
Curl.set_option(:cookiefile, value_for(value, :string), handle)
end
end