We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f1778d + 24b13f9 commit 440e42dCopy full SHA for 440e42d
msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/DefaultHttpClient.java
@@ -90,16 +90,16 @@ HttpURLConnection openConnection(final URL finalURL)
90
connection.setConnectTimeout(connectTimeout);
91
connection.setReadTimeout(readTimeout);
92
93
- if (connection instanceof HttpURLConnection) {
94
- return (HttpURLConnection) connection;
95
- } else {
+ if (connection instanceof HttpsURLConnection) {
96
HttpsURLConnection httpsConnection = (HttpsURLConnection) connection;
97
98
if (sslSocketFactory != null) {
99
httpsConnection.setSSLSocketFactory(sslSocketFactory);
100
}
101
102
return httpsConnection;
+ } else {
+ return (HttpURLConnection) connection;
103
104
105
0 commit comments