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

Fix BaseHTTPClient params #726

Merged

Conversation

hibachrach
Copy link
Contributor

The underlying HTTP::Client was expecting a host, but we were
providing it a base URI (which is the combined host and port).

It was also deriving its default value from the RouteHelper, but the
requests are expected to be made to the Server first.

This also enables the host to be configured without overriding the
client.

The underlying `HTTP::Client` was expecting a host, but we were
providing it a base URI (which is the combined host and port).

It was also deriving its default value from the `RouteHelper`, but the
requests are expected to be made to the `Server` *first*.

This also enables the host to be configured without overriding the
client.
Copy link
Member

@paulcsmith paulcsmith left a comment

Choose a reason for hiding this comment

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

This makes sense. Thanks for nice explanation and the fix :)

@paulcsmith paulcsmith merged commit 7480e8f into luckyframework:master Mar 9, 2019
@hibachrach hibachrach deleted the hib-fix-http-client-params branch March 9, 2019 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants