Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Allows encoding while constructing HTTP request for sending notification #35

Merged
merged 1 commit into from Apr 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -38,6 +38,7 @@
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.Map;


Expand Down Expand Up @@ -109,7 +110,7 @@ private CloseableHttpResponse getHttpResponse(BaseMessage message) throws Except
}

httpPostRequest.setURI(uri);
StringEntity entity = new StringEntity(extractBody(message));
StringEntity entity = new StringEntity(extractBody(message), StandardCharsets.UTF_8);
httpPostRequest.setEntity(entity);

return HTTP_CLIENT.execute(httpPostRequest);
Expand Down