uc3-dmp-external-api 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-external-api/client.rb +1 -3
- data/lib/uc3-dmp-external-api/version.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: 3978275d4f9e360e6b369eb7e687eee4df7fd6ddc8bb0916f3a2e73d63558266
|
4
|
+
data.tar.gz: a9b141fe36e51663a1403b6cc5d160568d9078eb54490fd4463125b5c5e3e7d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 030a77cf96349dea820dd93efac08c2cb54f54fe2b6a93ec2e2f973c68013298190aa661f8e767684368c7bd70dbfa67d0165f36b9ac93606ab5ff6850d54e4b
|
7
|
+
data.tar.gz: 7a331ea905846002362160e65703fc10118ea954666befaf8fa70659916c6fa37dfa29df10361dc62061f22c1f408c28d375cb74896ba6064cf7334ec47b868e
|
@@ -45,10 +45,8 @@ module Uc3DmpExternalApi
|
|
45
45
|
def _process_response(resp:)
|
46
46
|
return nil if resp.body.nil? || resp.body.empty?
|
47
47
|
|
48
|
-
puts "HEADER: #{resp.headers['content-type']}"
|
49
|
-
|
50
48
|
mime = resp.headers['content-type']
|
51
|
-
mime = 'application/json' if
|
49
|
+
mime = 'application/json' if mime.nil? && (rep.body.start_with?('[') || resp.body.start_with?('{'))
|
52
50
|
|
53
51
|
case mime
|
54
52
|
when 'application/json'
|