[REQ][Ruby] Ruby Allow Follow Redirect (#12047)

* Add `follow_location` option

Implementation of https://github.com/OpenAPITools/openapi-generator/issues/10028

* regenerated clients
This commit is contained in:
Connor Moore
2022-04-16 01:51:01 -07:00
committed by GitHub
parent f195a83aaf
commit 7b1795a159
5 changed files with 15 additions and 5 deletions

View File

@@ -49,6 +49,7 @@
header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false
{{#hasAuthMethods}}
update_params_for_auth! header_params, query_params, opts[:auth_names]
@@ -67,7 +68,8 @@
:ssl_verifyhost => _verify_ssl_host,
:sslcert => @config.cert_file,
:sslkey => @config.key_file,
:verbose => @config.debugging
:verbose => @config.debugging,
:followlocation => follow_location
}
# set custom cert, if provided

View File

@@ -93,6 +93,7 @@ module Petstore
header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false
update_params_for_auth! header_params, query_params, opts[:auth_names]
@@ -109,7 +110,8 @@ module Petstore
:ssl_verifyhost => _verify_ssl_host,
:sslcert => @config.cert_file,
:sslkey => @config.key_file,
:verbose => @config.debugging
:verbose => @config.debugging,
:followlocation => follow_location
}
# set custom cert, if provided

View File

@@ -93,6 +93,7 @@ module XAuthIDAlias
header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false
update_params_for_auth! header_params, query_params, opts[:auth_names]
@@ -109,7 +110,8 @@ module XAuthIDAlias
:ssl_verifyhost => _verify_ssl_host,
:sslcert => @config.cert_file,
:sslkey => @config.key_file,
:verbose => @config.debugging
:verbose => @config.debugging,
:followlocation => follow_location
}
# set custom cert, if provided

View File

@@ -93,6 +93,7 @@ module DynamicServers
header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
@@ -108,7 +109,8 @@ module DynamicServers
:ssl_verifyhost => _verify_ssl_host,
:sslcert => @config.cert_file,
:sslkey => @config.key_file,
:verbose => @config.debugging
:verbose => @config.debugging,
:followlocation => follow_location
}
# set custom cert, if provided

View File

@@ -93,6 +93,7 @@ module Petstore
header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
@@ -108,7 +109,8 @@ module Petstore
:ssl_verifyhost => _verify_ssl_host,
:sslcert => @config.cert_file,
:sslkey => @config.key_file,
:verbose => @config.debugging
:verbose => @config.debugging,
:followlocation => follow_location
}
# set custom cert, if provided