Merge branch '5.2.x'

This commit is contained in:
Rossen Stoyanchev
2020-05-08 09:38:50 +01:00
3 changed files with 26 additions and 20 deletions

View File

@@ -703,4 +703,12 @@ public class HttpHeadersTests {
assertThat(readOnlyHttpHeaders.entrySet()).extracting(Entry::getKey).containsExactly(expectedKeys);
}
@Test // gh-25034
public void equalsUnwrapsHttpHeaders() {
HttpHeaders headers1 = new HttpHeaders();
HttpHeaders headers2 = new HttpHeaders(new HttpHeaders(headers1));
assertThat(headers1).isEqualTo(headers2);
assertThat(headers2).isEqualTo(headers1);
}
}