Ethon::Easy cookies hacks modified to reflect the new version of Typhoeus
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user