Skip to content

Commit c5bf896

Browse files
authored
Merge pull request #33 from RestComm/BS-2693
https Content Type support UTF-8 charset
2 parents d3e0ae4 + 1e3ceef commit c5bf896

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/restcomm/sdk/HttpClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.fasterxml.jackson.databind.DeserializationFeature;
55
import com.fasterxml.jackson.databind.JavaType;
66
import com.fasterxml.jackson.databind.ObjectMapper;
7+
import org.apache.http.Consts;
78
import org.apache.http.client.fluent.Content;
89
import org.apache.http.client.fluent.Executor;
910
import org.apache.http.client.fluent.Request;
@@ -117,7 +118,7 @@ private void addRequestBody(Request request, Object entity) {
117118
String value = entry.getValue().toString();
118119
return new BasicNameValuePair(name, value);
119120
})
120-
.collect(Collectors.toList()));
121+
.collect(Collectors.toList()), Consts.UTF_8);
121122
}
122123
} catch (Exception e) {
123124
throw new RestcommClientException(e);

0 commit comments

Comments
 (0)