Skip to content

Conversation

yeikel
Copy link
Contributor

@yeikel yeikel commented Feb 7, 2024

No description provided.

int defaultPort = 80;
String addPort = (authority.port() != -1 && authority.port() != defaultPort) ? (":" + authority.port()) : "";
u = (useSSL == Boolean.TRUE ? "https://" : "http://") + authority.host() + addPort + requestURI;
u = "http://" + authority.host() + addPort + requestURI;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This check is not needed because in line 430, we're checking !useSSL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vietj Do you know what was the intention of this line?

if (proxyOptions != null && !key.ssl && proxyOptions.getType() == ProxyType.HTTP) {
SocketAddress server = SocketAddress.inetSocketAddress(proxyOptions.getPort(), proxyOptions.getHost());
key = new EndpointKey(key.ssl, key.sslOptions, proxyOptions, server, key.authority);
key = new EndpointKey(false, key.sslOptions, proxyOptions, server, key.authority);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is more explicit than key.ssl , and we are negating it in line 183

@yeikel yeikel marked this pull request as ready for review February 7, 2024 02:33
@vietj
Copy link
Member

vietj commented May 21, 2024

can you rebase on latest master there is a conflict

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