You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2023/04/03 05:25:39 UTC

[pinot] branch master updated: Add SSLContext Only Constructor for HttpClient (#10519)

This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 25c5da6aae Add SSLContext Only Constructor for HttpClient (#10519)
25c5da6aae is described below

commit 25c5da6aae91efce008d3df8fe573d3940104253
Author: Ankit Sultana <an...@uber.com>
AuthorDate: Mon Apr 3 10:55:30 2023 +0530

    Add SSLContext Only Constructor for HttpClient (#10519)
---
 .../src/main/java/org/apache/pinot/common/utils/http/HttpClient.java  | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pinot-common/src/main/java/org/apache/pinot/common/utils/http/HttpClient.java b/pinot-common/src/main/java/org/apache/pinot/common/utils/http/HttpClient.java
index 6a74512aae..06361da5e9 100644
--- a/pinot-common/src/main/java/org/apache/pinot/common/utils/http/HttpClient.java
+++ b/pinot-common/src/main/java/org/apache/pinot/common/utils/http/HttpClient.java
@@ -90,6 +90,10 @@ public class HttpClient implements AutoCloseable {
     this(HttpClientConfig.DEFAULT_HTTP_CLIENT_CONFIG, null);
   }
 
+  public HttpClient(@Nullable SSLContext sslContext) {
+    this(HttpClientConfig.DEFAULT_HTTP_CLIENT_CONFIG, sslContext);
+  }
+
   public HttpClient(HttpClientConfig httpClientConfig, @Nullable SSLContext sslContext) {
     SSLContext context = sslContext != null ? sslContext : TlsUtils.getSslContext();
     // Set NoopHostnameVerifier to skip validating hostname when uploading/downloading segments.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org