Skip to content

Conversation

@jansupol
Copy link
Contributor

Allow to pass headers to the proxy
Allow to set proxy using the JDK -Dhttp.proxyHost setting

Signed-off-by: jansupol jan.supol@oracle.com

@jansupol jansupol linked an issue May 27, 2022 that may be closed by this pull request
Allow to pass headers to the proxy
Allow to set proxy using the JDK -Dhttp.proxyHost setting

Signed-off-by: jansupol <jan.supol@oracle.com>
InetSocketAddress proxyAddr = (InetSocketAddress) proxyAddress;
if (proxyAddr.isUnresolved()
&& proxyAddr.getHostName() != null
&& proxyAddr.getHostName().startsWith("http://")) {
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible that starts by https?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, JDK does not support HTTPS proxy

Signed-off-by: jansupol <jan.supol@oracle.com>
@senivam senivam merged commit 6abd64c into eclipse-ee4j:master Jun 9, 2022
@senivam senivam added this to the 2.36 milestone Jun 9, 2022
This was referenced Jun 14, 2022
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.

Netty Connector proxy handler to support JDK's options

3 participants