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;