mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-07 15:39:29 +00:00
Fix incorrect weak ETag assertion
See gh-33374
This commit is contained in:
@@ -196,6 +196,12 @@ class HttpHeadersTests {
|
||||
assertThatIllegalArgumentException().isThrownBy(() -> headers.setETag(eTag));
|
||||
}
|
||||
|
||||
@Test
|
||||
void illegalETagWithoutQuoteAfterWSlash() {
|
||||
String etag = "W/v2.6\"";
|
||||
assertThatIllegalArgumentException().as("Invalid Weak ETag").isThrownBy(() -> headers.setETag(etag));
|
||||
}
|
||||
|
||||
@Test
|
||||
void ifMatch() {
|
||||
String ifMatch = "\"v2.6\"";
|
||||
|
||||
Reference in New Issue
Block a user