apidiesel 0.11 → 0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apidiesel/handlers/http_request_helper.rb +4 -0
- data/lib/apidiesel/handlers/json.rb +4 -1
- data/lib/apidiesel/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: 08fe77f23044c1ce2a36e5bd94e2c017a0683c9c
|
4
|
+
data.tar.gz: fb4e57bad12bd7f33791bd7ec5271210543cd047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbff420944f968b9f9a9de1be0db1af02856da7b407e8fbf3a3580f4d914cf9754d621413c05d50eccbbace72e2ed2947eb4e8235bb3a29549eb4fd48db92212
|
7
|
+
data.tar.gz: 84c5a28bde9e6043a9ad0583e63735bcd7be360e7db8fc315d07ba2bbbf6701e4b2611dc12351ec11fcceb9898f8505769dba7cc9113e765b6a8d57a5400618d
|
@@ -13,7 +13,10 @@ module Apidiesel
|
|
13
13
|
|
14
14
|
execute_request(request: request,
|
15
15
|
payload: payload,
|
16
|
-
api_config: api_config)
|
16
|
+
api_config: api_config) do |http_request|
|
17
|
+
http_request.headers = {"Accept" => "application/json", "Content-Type" => "application/json"}
|
18
|
+
http_request
|
19
|
+
end
|
17
20
|
|
18
21
|
request.metadata[:finished_at] = DateTime.now
|
19
22
|
|
data/lib/apidiesel/version.rb
CHANGED