typhoeus 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,8 +107,8 @@ module Typhoeus
107
107
 
108
108
  def set_headers
109
109
  @header_list = nil
110
- @headers.each {|key, value| @header_list = Curl.slist_append(@header_list, "#{key}: #{value}") }
111
- set_option(:httpheader, @header_list) unless @headers.empty?
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
@@ -41,7 +41,7 @@ module Typhoeus
41
41
  end
42
42
 
43
43
  def headers
44
- @header ||= {}
44
+ @headers ||= {}
45
45
  end
46
46
 
47
47
  def response_body
@@ -1,3 +1,3 @@
1
1
  module Typhoeus
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: