json_requester 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_requester.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da9e987ccbff806818b3b4e36acbb35f7e529d237acb29a279e932953fc75217
|
4
|
+
data.tar.gz: ffd38fbd925c4017e5010813aaf3286c02d734bd665c167f199f5d1b80aad5f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af726a90e2f5a9e3fd1103de3bc9c830bbb59bbefbce692e0d0231f5be9f2628140a58f2c18bd0ed2191fe3dc0c586d6b0b4adad58ecb545a315feb82e03ced8
|
7
|
+
data.tar.gz: 9f1a98e0f13aa4516ce84bbb85e76f7c54f50d91c764edbbe41acb69accc77142b459cbdb833b17896a43f39298a03c7564198f836bddc202c3420409aa5799f
|
data/lib/json_requester.rb
CHANGED
@@ -33,7 +33,7 @@ class JsonRequester
|
|
33
33
|
req.url path
|
34
34
|
req.headers = headers if object_present?(headers)
|
35
35
|
req.headers['Content-Type'] = 'application/x-www-form-urlencoded ;charset=utf-8'
|
36
|
-
req.body = params if object_present?(params)
|
36
|
+
req.body = URI.encode_www_form(params) if object_present?(params)
|
37
37
|
end
|
38
38
|
process_response(res)
|
39
39
|
rescue => e
|