From c4e31887a12f3de4c6afd5ff6ea39490bd25f569 Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Mon, 25 Sep 2023 15:04:29 +0100 Subject: [PATCH] synonyms don't return location with CREATED --- .../rest/action/synonyms/RestPutSynonymRuleAction.java | 2 +- .../rest/action/synonyms/RestPutSynonymsAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymRuleAction.java b/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymRuleAction.java index baff0b449b09e..790e62729f110 100644 --- a/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymRuleAction.java +++ b/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymRuleAction.java @@ -46,7 +46,7 @@ protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient return channel -> client.execute( PutSynonymRuleAction.INSTANCE, request, - new RestToXContentListener<>(channel, SynonymUpdateResponse::status) + new RestToXContentListener<>(channel, SynonymUpdateResponse::status, r -> null) ); } } diff --git a/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymsAction.java b/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymsAction.java index 3c69698fcb808..e16db62a9ff96 100644 --- a/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymsAction.java +++ b/server/src/main/java/org/elasticsearch/rest/action/synonyms/RestPutSynonymsAction.java @@ -45,7 +45,7 @@ protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient return channel -> client.execute( PutSynonymsAction.INSTANCE, request, - new RestToXContentListener<>(channel, SynonymUpdateResponse::status) + new RestToXContentListener<>(channel, SynonymUpdateResponse::status, r -> null) ); } }