pauldix-typhoeus 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/typhoeus.rb +1 -1
- data/lib/typhoeus/easy.rb +3 -3
- metadata +1 -1
data/lib/typhoeus.rb
CHANGED
data/lib/typhoeus/easy.rb
CHANGED
@@ -107,10 +107,10 @@ module Typhoeus
|
|
107
107
|
end
|
108
108
|
end.flatten.join("&")
|
109
109
|
|
110
|
-
if method == :
|
111
|
-
self.url = "#{url}?#{params_string}"
|
112
|
-
elsif method == :post
|
110
|
+
if method == :post
|
113
111
|
self.post_data = params_string
|
112
|
+
else
|
113
|
+
self.url = "#{url}?#{params_string}"
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|