LuXugang commented on code in PR #14491:
URL: 
https://github.com/apache/dolphinscheduler/pull/14491#discussion_r1257732582


##########
dolphinscheduler-task-plugin/dolphinscheduler-task-http/src/main/java/org/apache/dolphinscheduler/plugin/task/http/HttpTask.java:
##########
@@ -289,8 +293,20 @@ protected void setHeaders(HttpUriRequest request, 
List<HttpProperty> httpPropert
      */
     protected CloseableHttpClient createHttpClient() {
         final RequestConfig requestConfig = requestConfig();
-        HttpClientBuilder httpClientBuilder;
-        httpClientBuilder = 
HttpClients.custom().setDefaultRequestConfig(requestConfig);
+        HttpClientBuilder httpClientBuilder = HttpClients.custom();
+        if (httpParameters.getEnableProxy()) {
+            CredentialsProvider provider = new BasicCredentialsProvider();
+            AuthScope authScope = null;
+            // basic auth could tak effect alone without proxy

Review Comment:
   Address in 
[f1ce0d8](https://github.com/apache/dolphinscheduler/pull/14491/commits/f1ce0d8e1024727a3cb36b97932c4a2a596ad682)
 .



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to