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 +4 -4
- data/lib/flexirest/request.rb +1 -0
- data/lib/flexirest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f3e43f257943b1451609ebc3df820af06828fac
|
4
|
+
data.tar.gz: 1217317304f87b9dcf2beb23f059c433246e9689
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e473b797ffdedf5f923266f7a7763f6107ce6120970c7763fb0b083a66b28a102b322dbbbec52127aacb4815f730bfc34d95c14eeb490ca56c322fee17576e1f
|
7
|
+
data.tar.gz: 75e5ea4db431d20ecf9fec41ebfa7998d9cf6eda7e39ab4f036437a506d8ddaff20afdd5de0b0e516563cb9ebb3abbe9f0de4e42a34e84d8d73edd9a2748b87d
|
data/lib/flexirest/request.rb
CHANGED
@@ -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
|
data/lib/flexirest/version.rb
CHANGED