This commit is contained in:
Ruben Bermudez 2019-01-02 15:56:45 +01:00
parent 702285e631
commit 293d903083

View File

@ -53,7 +53,7 @@ public final class WebhookUtils {
}
HttpEntity multipart = builder.build();
httppost.setEntity(multipart);
try (CloseableHttpResponse response = httpclient.execute(httppost)) {
try (CloseableHttpResponse response = httpclient.execute(httppost, botOptions.getHttpContext())) {
HttpEntity ht = response.getEntity();
BufferedHttpEntity buf = new BufferedHttpEntity(ht);
String responseContent = EntityUtils.toString(buf, StandardCharsets.UTF_8);