flexirest 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0179b1032c7c9c28be5895b6dc2f6268924469b
4
- data.tar.gz: b2096625168b34e7dbe4509363546426cafd1899
3
+ metadata.gz: 5f3e43f257943b1451609ebc3df820af06828fac
4
+ data.tar.gz: 1217317304f87b9dcf2beb23f059c433246e9689
5
5
  SHA512:
6
- metadata.gz: 6dd4e5f49b2ee856235101eb2a4039fb3200cbdcde7e5880346724a541c72452f3174a071684291decc91c16fa2c541b1086af984735ae634ff981849c4384a4
7
- data.tar.gz: aa4c442cb8646e480249122168c50a8bf81748e4273d225526d08b8e39bf883d29a8a674e27b7e65f7f85183c4caa5fce605ffe2cf8ba861f150bae746c44a22
6
+ metadata.gz: e473b797ffdedf5f923266f7a7763f6107ce6120970c7763fb0b083a66b28a102b322dbbbec52127aacb4815f730bfc34d95c14eeb490ca56c322fee17576e1f
7
+ data.tar.gz: 75e5ea4db431d20ecf9fec41ebfa7998d9cf6eda7e39ab4f036437a506d8ddaff20afdd5de0b0e516563cb9ebb3abbe9f0de4e42a34e84d8d73edd9a2748b87d
@@ -348,6 +348,7 @@ module Flexirest
348
348
  headers["Accept"] ||= "application/vnd.api+json"
349
349
  JsonAPIProxy::Headers.save(headers)
350
350
  elsif http_method == :get || (http_method == :delete && !@method[:options][:send_delete_body])
351
+ headers["Content-Type"] ||= "application/x-www-form-urlencoded"
351
352
  @body = ""
352
353
  elsif request_body_type == :form_encoded
353
354
  @body ||= (params || @post_params || {}).to_query
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.4.6"
2
+ VERSION = "1.4.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries