fix #1426: send Content-Type:application/json to Elasticsearch
This commit is contained in:
parent
771978871e
commit
d37fc283d2
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ public class EsApiManager extends BaseApiManager {
|
|||
|
||||
final Method httpMethod = Method.valueOf(request.getMethod().toUpperCase(Locale.ROOT));
|
||||
final CurlRequest curlRequest = new CurlRequest(httpMethod, ResourceUtil.getElasticsearchHttpUrl() + path);
|
||||
curlRequest.header("Content-Type", "application/json;charset=utf-8");
|
||||
|
||||
request.getParameterMap().entrySet().stream().forEach(entry -> {
|
||||
if (entry.getValue().length > 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue