forked from loafle/openapi-generator-original
[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:
parent
6a7b8fcebe
commit
d80cd099ca
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user