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

SimpleHttpClient: Use default HTTP/HTTPS ports #188

Conversation

mikkokar
Copy link
Contributor

An attempt to send a HTTP request without explicitly set port numbers, the SimpleHttpClient fails and throws an exception. Instead, it should use a default port for HTTP or HTTPS depending on the type the request.

This PR provides a fix for the above problem.

@mikkokar mikkokar requested review from kvosper and dvlato June 14, 2018 07:41
.setConnectionFactory(connectionFactory)
.build();

await(client.sendRequest(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need 'await' here?

Copy link
Contributor Author

@mikkokar mikkokar Jun 14, 2018

Choose a reason for hiding this comment

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

You are right. await is not necessary. I have removed.

@mikkokar mikkokar merged commit f2219f5 into ExpediaGroup:styx-1.0-dev Jun 14, 2018
@mikkokar mikkokar deleted the simple-http-client-send-to-default-http-ports branch April 1, 2019 08:36
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.

3 participants