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: re-enable system properties for theme http client #238

Merged

Conversation

TimothyEarley
Copy link

In order to set https.proxyHost and co externally (see https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/ and https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html) the method useSystemProperties() must be called on the HttpClientBuilder.

This re-enables the system properties removed (inadvertently?) in this commit: e2a6fec

We need to be able to set a proxy for all http connections, in this case the theme download.

Thanks!

In order to set https.proxyHost and co externally (see https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/ and https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html)
the method useSystemProperties() must be called on the HttpClientBuilder.
@simonbrowndotje simonbrowndotje merged commit ed0a2b4 into structurizr:master Jan 30, 2024
@simonbrowndotje
Copy link
Contributor

Thank you.

@TimothyEarley TimothyEarley deleted the fix/system-settings-proxy branch January 30, 2024 12:49
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.

None yet

2 participants