Skip to content

Commit

Permalink
feat: Support proxy settings in MS Teams sink (#2913)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikriemer authored Jun 3, 2024
1 parent 443fb8f commit 8dcbd02
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.client.HttpClientBuilder;

import java.io.IOException;
import java.net.MalformedURLException;
Expand Down Expand Up @@ -104,8 +104,8 @@ public void onNotificationEvent(Event event) {
} else {
teamsMessageContent = createMessageFromAdvancedContent(processedMessageContent);
}

sendPayloadToWebhook(HttpClients.createDefault(), teamsMessageContent, webhookUrl);
var client = HttpClientBuilder.create().useSystemProperties().build();
sendPayloadToWebhook(client, teamsMessageContent, webhookUrl);
}

@Override
Expand Down

0 comments on commit 8dcbd02

Please sign in to comment.