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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/json_requester.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b86653ab4918eb6d0961642de819506297b25581ee72616227504b563cc7ad3
4
- data.tar.gz: ae889800dde256cade676c9dcbe064108ef5f23e7e44184f928618c33902322b
3
+ metadata.gz: da9e987ccbff806818b3b4e36acbb35f7e529d237acb29a279e932953fc75217
4
+ data.tar.gz: ffd38fbd925c4017e5010813aaf3286c02d734bd665c167f199f5d1b80aad5f8
5
5
  SHA512:
6
- metadata.gz: e8a909495ba15d8c322220dfbd5ce65423bffb1c8081d521550ccc26e1cf08e8a9ef587fcd581f70f5f16f73072aaf1307df042d3acb28e9f1c83a46f480779d
7
- data.tar.gz: c71af49243d83399762922d54775d890127d932ba0c6dad01c58f3a5a4d0779e360812f21b0b1d2bcc7776a80b3aaad9f28215cc545de72f84840c53d144dd03
6
+ metadata.gz: af726a90e2f5a9e3fd1103de3bc9c830bbb59bbefbce692e0d0231f5be9f2628140a58f2c18bd0ed2191fe3dc0c586d6b0b4adad58ecb545a315feb82e03ced8
7
+ data.tar.gz: 9f1a98e0f13aa4516ce84bbb85e76f7c54f50d91c764edbbe41acb69accc77142b459cbdb833b17896a43f39298a03c7564198f836bddc202c3420409aa5799f
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_requester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee