From 3f8477eed79856b09d403a97dab0f90b527131b0 Mon Sep 17 00:00:00 2001 From: Peter Thomas Date: Fri, 8 Mar 2024 22:36:37 +0530 Subject: [PATCH] respect param order: https://stackoverflow.com/q/78128684/143475 --- .../main/java/com/intuit/karate/http/HttpRequestBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karate-core/src/main/java/com/intuit/karate/http/HttpRequestBuilder.java b/karate-core/src/main/java/com/intuit/karate/http/HttpRequestBuilder.java index 98f6937ac..bd10278a7 100644 --- a/karate-core/src/main/java/com/intuit/karate/http/HttpRequestBuilder.java +++ b/karate-core/src/main/java/com/intuit/karate/http/HttpRequestBuilder.java @@ -463,7 +463,7 @@ public HttpRequestBuilder param(String name, String... values) { public HttpRequestBuilder param(String name, List values) { if (params == null) { - params = new HashMap<>(); + params = new LinkedHashMap<>(); } List notNullValues = values.stream().filter(v -> v != null).collect(Collectors.toList()); if (!notNullValues.isEmpty()) {