Back to the previous version of Typhoeus & Ethon to avoid seg fault in rspec

This commit is contained in:
erwanlr
2013-04-11 14:48:43 +02:00
parent 1615c0f84e
commit bdedf6f63f
2 changed files with 16 additions and 1 deletions

View File

@@ -47,6 +47,20 @@ module Typhoeus
end
end
module Ethon
class Easy
module Options
def cookiejar=(value)
Curl.set_option(:cookiejar, value_for(value, :string), handle)
end
def cookiefile=(value)
Curl.set_option(:cookiefile, value_for(value, :string), handle)
end
end
end
end
# Override for puts to enable logging
def puts(o = '')
# remove color for logging