From fc0d014a930f1a46018d7d6e4bdf0a5dac275652 Mon Sep 17 00:00:00 2001 From: Oliver Lockwood Date: Wed, 22 May 2024 13:45:19 +0100 Subject: [PATCH] Fix bug highlighted by unit testing Signed-off-by: Oliver Lockwood --- .../src/main/java/org/opensearch/client/RequestOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rest/src/main/java/org/opensearch/client/RequestOptions.java b/client/rest/src/main/java/org/opensearch/client/RequestOptions.java index 934cad8aa0cac..4bab2322e595c 100644 --- a/client/rest/src/main/java/org/opensearch/client/RequestOptions.java +++ b/client/rest/src/main/java/org/opensearch/client/RequestOptions.java @@ -212,7 +212,7 @@ private Builder( RequestConfig requestConfig ) { this.headers = new ArrayList<>(headers); - this.queryParams = new HashMap<>(); + this.queryParams = new HashMap<>(queryParams); this.httpAsyncResponseConsumerFactory = httpAsyncResponseConsumerFactory; this.warningsHandler = warningsHandler; this.requestConfig = requestConfig;