typhoeus 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/typhoeus/easy/options.rb +2 -2
- data/lib/typhoeus/easy.rb +1 -1
- data/lib/typhoeus/version.rb +1 -1
- metadata +1 -1
@@ -107,8 +107,8 @@ module Typhoeus
|
|
107
107
|
|
108
108
|
def set_headers
|
109
109
|
@header_list = nil
|
110
|
-
|
111
|
-
set_option(:httpheader, @header_list) unless
|
110
|
+
headers.each {|key, value| @header_list = Curl.slist_append(@header_list, "#{key}: #{value}") }
|
111
|
+
set_option(:httpheader, @header_list) unless headers.empty?
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
data/lib/typhoeus/easy.rb
CHANGED
data/lib/typhoeus/version.rb
CHANGED