mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 13:02:48 +00:00
Ruby: Fix deprecation warning for Faraday (#10559)
* Fix deprecation warning for Faraday
* test only ruby
* Revert "test only ruby"
This reverts commit 2ca650e66b.
This commit is contained in:
@@ -56,7 +56,7 @@ module Petstore
|
||||
}
|
||||
|
||||
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
|
||||
conn.basic_auth(config.username, config.password)
|
||||
conn.request(:basic_auth, config.username, config.password)
|
||||
@config.configure_middleware(conn)
|
||||
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
||||
conn.request :multipart
|
||||
|
||||
Reference in New Issue
Block a user