You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation, it should be possible to ask Bravado to follow HTTP redirects using the _request_options parameter. Unfortunately, RequestConfig doesn't know about it and follow_redirect ends up in RequestConfig.additional_parameters which isn't used anywhere.
And then, RequestsClient.separate_params will try to find the follow_redirects option inside the requests params, which will never be there because requests_params only contains the parameters included in the Swagger spec, and will thus set it to False.
I think the detection of follow_redirects should be removed from RequestsClient.separate_params and added to RequestConfig instead.
The text was updated successfully, but these errors were encountered:
abompard
added a commit
to fedora-infra/fasjson-client
that referenced
this issue
Sep 30, 2024
According to the documentation, it should be possible to ask Bravado to follow HTTP redirects using the
_request_options
parameter. Unfortunately, RequestConfig doesn't know about it andfollow_redirect
ends up inRequestConfig.additional_parameters
which isn't used anywhere.And then, RequestsClient.separate_params will try to find the
follow_redirects
option inside the requests params, which will never be there becauserequests_params
only contains the parameters included in the Swagger spec, and will thus set it to False.I think the detection of
follow_redirects
should be removed fromRequestsClient.separate_params
and added toRequestConfig
instead.The text was updated successfully, but these errors were encountered: