Skip to content

Commit 1b50097

Browse files
mp911desothawo
authored andcommitted
Adopt to changes in Spring Framework 7.
See #3038
1 parent ba9d93a commit 1b50097

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/springframework/data/elasticsearch/support/HttpHeadersTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ void shouldInitializeFromSpringHttpHeaders() {
7878
springHttpHeaders.add(headerName, "true");
7979

8080
var httpHeaders = new HttpHeaders();
81-
httpHeaders.addAll(springHttpHeaders);
81+
82+
springHttpHeaders.forEach(httpHeaders::addAll);
8283

8384
assertThat(httpHeaders.get(X_TEST_HEADER)).containsExactly("foo", "bar");
8485
assertThat(httpHeaders.get(headerName)).containsExactly("true");

0 commit comments

Comments
 (0)