lib/curl.rb in curb-0.8.4 vs lib/curl.rb in curb-0.8.5

- old
+ new

@@ -6,9 +6,10 @@ # expose shortcut methods module Curl def self.http(verb, url, post_body=nil, put_data=nil, &block) handle = Thread.current[:curb_curl] ||= Curl::Easy.new + handle.reset handle.url = url handle.post_body = post_body if post_body handle.put_data = put_data if put_data yield handle if block_given? handle.http(verb)