Skip to content

Commit 2abdd3a

Browse files
committed
set follow_location default to true
1 parent 7b1795a commit 2abdd3a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

modules/openapi-generator/src/main/resources/ruby-client/api_client_typhoeus_partial.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
header_params = @default_headers.merge(opts[:header_params] || {})
5050
query_params = opts[:query_params] || {}
5151
form_params = opts[:form_params] || {}
52-
follow_location = opts[:follow_location] || false
52+
follow_location = opts[:follow_location] || true
5353

5454
{{#hasAuthMethods}}
5555
update_params_for_auth! header_params, query_params, opts[:auth_names]

samples/client/petstore/ruby/lib/petstore/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def build_request(http_method, path, opts = {})
9393
header_params = @default_headers.merge(opts[:header_params] || {})
9494
query_params = opts[:query_params] || {}
9595
form_params = opts[:form_params] || {}
96-
follow_location = opts[:follow_location] || false
96+
follow_location = opts[:follow_location] || true
9797

9898
update_params_for_auth! header_params, query_params, opts[:auth_names]
9999

samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/lib/x_auth_id_alias/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def build_request(http_method, path, opts = {})
9393
header_params = @default_headers.merge(opts[:header_params] || {})
9494
query_params = opts[:query_params] || {}
9595
form_params = opts[:form_params] || {}
96-
follow_location = opts[:follow_location] || false
96+
follow_location = opts[:follow_location] || true
9797

9898
update_params_for_auth! header_params, query_params, opts[:auth_names]
9999

samples/openapi3/client/features/dynamic-servers/ruby/lib/dynamic_servers/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def build_request(http_method, path, opts = {})
9393
header_params = @default_headers.merge(opts[:header_params] || {})
9494
query_params = opts[:query_params] || {}
9595
form_params = opts[:form_params] || {}
96-
follow_location = opts[:follow_location] || false
96+
follow_location = opts[:follow_location] || true
9797

9898

9999
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)

samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def build_request(http_method, path, opts = {})
9393
header_params = @default_headers.merge(opts[:header_params] || {})
9494
query_params = opts[:query_params] || {}
9595
form_params = opts[:form_params] || {}
96-
follow_location = opts[:follow_location] || false
96+
follow_location = opts[:follow_location] || true
9797

9898

9999
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)

0 commit comments

Comments
 (0)