[BUG][RUBY] Fix ruby faraday HTTP 0 issue without libcurl (#13945)

* Fix ruby faraday HTTP 0 issue without libcurl

* commit generated files
This commit is contained in:
Mark Delk 2022-11-07 20:46:18 -06:00 committed by GitHub
parent 6a7b8fcebe
commit d80cd099ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
end
unless response.success?
if response.status == 0
if response.status == 0 && response.respond_to?(:return_message)
# Errors from libcurl will be made visible here
fail ApiError.new(code: 0,
message: response.return_message)

View File

@ -58,7 +58,7 @@ module Petstore
end
unless response.success?
if response.status == 0
if response.status == 0 && response.respond_to?(:return_message)
# Errors from libcurl will be made visible here
fail ApiError.new(code: 0,
message: response.return_message)