typhoeus 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/typhoeus.rb +1 -1
  2. data/lib/typhoeus/hydra.rb +1 -1
  3. metadata +1 -1
data/lib/typhoeus.rb CHANGED
@@ -14,7 +14,7 @@ require 'typhoeus/request'
14
14
  require 'typhoeus/hydra'
15
15
 
16
16
  module Typhoeus
17
- VERSION = "0.1.8"
17
+ VERSION = "0.1.9"
18
18
 
19
19
  def self.easy_object_pool
20
20
  @easy_objects ||= []
@@ -107,8 +107,8 @@ module Typhoeus
107
107
  def get_easy_object(request)
108
108
  easy = @easy_pool.pop || Easy.new
109
109
  easy.url = request.url
110
- easy.params = request.params if request.method == :post
111
110
  easy.method = request.method
111
+ easy.params = request.params if request.method == :post
112
112
  easy.headers = request.headers if request.headers
113
113
  easy.request_body = request.body if request.body
114
114
  easy.timeout = request.timeout if request.timeout
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.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix