set follow_location default to true

This commit is contained in:
William Cheng 2022-04-16 17:46:55 +08:00
parent 7b1795a159
commit 2abdd3acb7
5 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@
header_params = @default_headers.merge(opts[:header_params] || {}) header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {} query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {} form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false follow_location = opts[:follow_location] || true
{{#hasAuthMethods}} {{#hasAuthMethods}}
update_params_for_auth! header_params, query_params, opts[:auth_names] update_params_for_auth! header_params, query_params, opts[:auth_names]

View File

@ -93,7 +93,7 @@ module Petstore
header_params = @default_headers.merge(opts[:header_params] || {}) header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {} query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {} form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false follow_location = opts[:follow_location] || true
update_params_for_auth! header_params, query_params, opts[:auth_names] update_params_for_auth! header_params, query_params, opts[:auth_names]

View File

@ -93,7 +93,7 @@ module XAuthIDAlias
header_params = @default_headers.merge(opts[:header_params] || {}) header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {} query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {} form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false follow_location = opts[:follow_location] || true
update_params_for_auth! header_params, query_params, opts[:auth_names] update_params_for_auth! header_params, query_params, opts[:auth_names]

View File

@ -93,7 +93,7 @@ module DynamicServers
header_params = @default_headers.merge(opts[:header_params] || {}) header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {} query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {} form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false follow_location = opts[:follow_location] || true
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false) # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)

View File

@ -93,7 +93,7 @@ module Petstore
header_params = @default_headers.merge(opts[:header_params] || {}) header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {} query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {} form_params = opts[:form_params] || {}
follow_location = opts[:follow_location] || false follow_location = opts[:follow_location] || true
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false) # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)