Skip to content

Commit

Permalink
Bug fix: Do not ignore scheme property (apache#12332)
Browse files Browse the repository at this point in the history
Co-authored-by: Kartik Khare <[email protected]>
  • Loading branch information
KKcorps and Kartik Khare authored Feb 14, 2024
1 parent 04dd579 commit b38fcee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ public JsonAsyncHttpPinotClientTransportFactory withConnectionProperties(Propert
_headers = ConnectionUtils.getHeadersFromProperties(properties);
}

if (_scheme == null) {
_scheme = properties.getProperty("scheme", CommonConstants.HTTP_PROTOCOL);
String scheme = properties.getProperty("scheme", CommonConstants.HTTP_PROTOCOL);
if (_scheme == null || !_scheme.contentEquals(scheme)) {
_scheme = scheme;
}

if (_sslContext == null && _scheme.contentEquals(CommonConstants.HTTPS_PROTOCOL)) {
Expand Down

0 comments on commit b38fcee

Please sign in to comment.