Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Apr 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
wing328 marked this conversation as resolved.
Show resolved Hide resolved

{{#hasAuthMethods}}
update_params_for_auth! header_params, query_params, opts[:auth_names]
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion samples/client/petstore/ruby/lib/petstore/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def build_request(http_method, path, opts = {})
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]

Expand All @@ -109,7 +110,8 @@ def build_request(http_method, path, opts = {})
: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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def build_request(http_method, path, opts = {})
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]

Expand All @@ -109,7 +110,8 @@ def build_request(http_method, path, opts = {})
: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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def build_request(http_method, path, opts = {})
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)
Expand All @@ -108,7 +109,8 @@ def build_request(http_method, path, opts = {})
: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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def build_request(http_method, path, opts = {})
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)
Expand All @@ -108,7 +109,8 @@ def build_request(http_method, path, opts = {})
: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
Expand Down