Align generated Set-Cookie header with RFC 6265
Closes gh-378
This commit is contained in:
@@ -68,6 +68,6 @@ public class MockMvcResponseConverterTests {
|
||||
assertThat(operationResponse.getHeaders().size(), is(1));
|
||||
assertTrue(operationResponse.getHeaders().containsKey(HttpHeaders.SET_COOKIE));
|
||||
assertThat(operationResponse.getHeaders().get(HttpHeaders.SET_COOKIE), equalTo(
|
||||
Collections.singletonList("name=value;domain=localhost;HttpOnly")));
|
||||
Collections.singletonList("name=value; Domain=localhost; HttpOnly")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -388,7 +388,7 @@ public class MockMvcRestDocumentationIntegrationTests {
|
||||
is(snippet(asciidoctor())
|
||||
.withContents(httpResponse(asciidoctor(), HttpStatus.OK).header(
|
||||
HttpHeaders.SET_COOKIE,
|
||||
"name=value;domain=localhost;HttpOnly"))));
|
||||
"name=value; Domain=localhost; HttpOnly"))));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user