Skip to content

Commit

Permalink
fix: set content type to application/json
Browse files Browse the repository at this point in the history
ElasticSearch 6.0 accept only content type application/json

#3
  • Loading branch information
StephaneBour committed Nov 15, 2017
1 parent ce842f6 commit 40a764e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function callES(server, url, method, data, successCallback, completeCallback) {
$.ajax({
url: url,
data: method == "GET" ? null : data,
contentType: 'application/json',
// xhrFields: {
// withCredentials: true
// },
Expand Down

0 comments on commit 40a764e

Please sign in to comment.