diff --git a/README.md b/README.md index e7ae7565..b0108527 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,9 @@ Versions | 0.90.X | 0.90 | v0.90 | | 1.X | 1.0 | v1.6.1 | micwy/elasticsearch-kopf:1.x | 2.X | 2.0 | v2.1.1 | micwy/elasticsearch-kopf:2.x -| 5.X,6.X | master | v6.0.1 | micwy/elasticsearch-kopf:6.x -| 5.X,6.X | dev | v6.0.2-alpha | micwy/elasticsearch-kopf:dev +| 5.X | master | v6.0.2 | micwy/elasticsearch-kopf:5.x +| 6.X | master | v6.0.2 | micwy/elasticsearch-kopf:6.x +| 5.X,6.X | dev | v6.0.3-alpha | micwy/elasticsearch-kopf:dev Installation ------------ diff --git a/src/kopf/controllers/global.js b/src/kopf/controllers/global.js index a99a2775..71433ebc 100644 --- a/src/kopf/controllers/global.js +++ b/src/kopf/controllers/global.js @@ -3,7 +3,7 @@ kopf.controller('GlobalController', ['$scope', '$location', '$sce', '$window', function($scope, $location, $sce, $window, AlertService, ElasticService, ExternalSettingsService, PageService) { - $scope.version = '6.0.2-alpha'; + $scope.version = '6.0.2'; $scope.modal = new ModalControls(); diff --git a/src/kopf/services/elastic.js b/src/kopf/services/elastic.js index deb96590..ef8904bb 100755 --- a/src/kopf/services/elastic.js +++ b/src/kopf/services/elastic.js @@ -756,7 +756,13 @@ kopf.factory('ElasticService', ['$http', '$q', '$timeout', '$location', this.clusterRequest = function(method, path, params, data, success, error) { var url = this.connection.host + path; - var config = {method: method, url: url, data: data, params: params}; + var config = { + method: method, + url: url, + data: data, + params: params, + headers: {'Content-Type' : 'application/json'} + }; this.addAuth(config); $http(config). success(function(data, status, headers, config) {