lib/yoti/http/request.rb in yoti-1.3.1 vs lib/yoti/http/request.rb in yoti-1.4.0

- old
+ new

@@ -24,10 +24,11 @@ signed_request = SignedRequest.new(unsigned_request, path, @payload).sign http.request(signed_request) end raise RequestError, "Unsuccessful Yoti API call: #{res.message}" unless res.code == '200' + res.body end private @@ -69,9 +70,10 @@ end end def token return '' unless @encrypted_connect_token + Yoti::SSL.decrypt_token(@encrypted_connect_token) end def https_uri? uri.scheme == 'https'