.setBodyEncoding(charset);
return execute(req);
}
private F.Promise<play.libs.ws.WSResponse> executeJson(JsonNode body) {
FluentCaseInsensitiveStringsMap headers = new FluentCaseInsensitiveStringsMap(this.headers);
headers.replace(HttpHeaders.Names.CONTENT_TYPE, "application/json; charset=utf-8");
String bodyStr = Json.stringify(body);
byte[] bodyBytes;
try {
bodyBytes = bodyStr.getBytes("utf-8");
} catch (UnsupportedEncodingException e) {