-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Currently generated Ruby client is using Typhoeus::Request with "followlocation" not set so all requests which get redirected will fail
Describe the solution you'd like
Add :followlocation => true to the req_opts inside function build_request
req_opts = {
:method => http_method,
:headers => header_params,
:params => query_params,
:params_encoding => @config.params_encoding,
:timeout => @config.timeout,
:ssl_verifypeer => @config.verify_ssl,
:ssl_verifyhost => _verify_ssl_host,
:sslcert => @config.cert_file,
:sslkey => @config.key_file,
:verbose => @config.debugging,
:followlocation => true,
}
I think this should be turned on by default to allow API redirect users etc. Hope this will be available in the coming updates.