Skip to content

Commit

Permalink
Use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
MediaMarco committed Apr 9, 2018
1 parent 2b1b375 commit 1d5f89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/otto/flummi/IndicesAdminClient.java
Expand Up @@ -72,7 +72,7 @@ public JsonObject getIndexSettings() {
public JsonObject getIndexMapping(String indexName) {
try {
Response response = httpClient.prepareGet("/" + indexName + "/_mapping")
.addHeader("Content-Type", "application/json")
.addHeader(CONTENT_TYPE, APPL_JSON)
.execute().get();
if (response.getStatusCode() != 200) {
throw RequestBuilderUtil.toHttpServerErrorException(response);
Expand Down

0 comments on commit 1d5f89c

Please sign in to comment.