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

Conversation

marclop
Copy link
Collaborator

@marclop marclop commented Nov 22, 2019

Description

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.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)

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 marclop added bug Something isn't working loe:small labels Nov 22, 2019
@marclop marclop added this to the 32: Nov 13 - Dec 03 milestone Nov 22, 2019
@marclop marclop requested a review from a team as a code owner November 22, 2019 02:09
@marclop marclop self-assigned this Nov 22, 2019
Copy link
Contributor

@ppapapetrou76 ppapapetrou76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@marclop marclop merged commit 72fc278 into elastic:master Nov 25, 2019
@marclop marclop deleted the f/update-sdk-to-v1.0.0-bc6 branch November 25, 2019 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants