lib/sucker/request.rb in sucker-1.1.2 vs lib/sucker/request.rb in sucker-1.1.3
- old
+ new
@@ -110,10 +110,10 @@
def get
raise ArgumentError.new "Locale missing" unless locale
raise ArgumentError.new "AWS access key missing" unless key
curl = Curl::Easy.perform(uri.to_s) do |easy|
- curl_opts.each { |k, v| easy.send(k, v) }
+ curl_opts.each { |k, v| easy.send("#{k}=", v) }
end
Response.new(curl)
end