Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: Add api.DefaultTransport in http.Client #59

Merged
merged 1 commit into from
Nov 25, 2019

Commits on Nov 22, 2019

  1. http: Add api.DefaultTransport in http.Client

    Adds the defined sdk `api.DefaultTransport` to the default `http.Client`
    used by all the API requests. It fixes the issue where responses with a
    StatusCode different to those specified in the swagger spec result in
    either an `unknown response` or blank response which makes for very bad
    UX. After this change, the body of those requests will be shown to the
    user.
    
    Signed-off-by: Marc Lopez <marc5.12@outlook.com>
    marclop committed Nov 22, 2019
    Configuration menu
    Copy the full SHA
    620a731 View commit details
    Browse the repository at this point in the history