Skip to content

Fix BaseHTTPClient params#726

Merged
paulcsmith merged 1 commit intoluckyframework:masterfrom
hibachrach:hib-fix-http-client-params
Mar 9, 2019
Merged

Fix BaseHTTPClient params#726
paulcsmith merged 1 commit intoluckyframework:masterfrom
hibachrach:hib-fix-http-client-params

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