Skip to content

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

@dominhtri1995

Description

@dominhtri1995

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions