Align generated Set-Cookie header with RFC 6265

Closes gh-378
This commit is contained in:
Andy Wilkinson
2017-04-07 16:59:49 +01:00
parent 93f4f11260
commit 704257e93b
6 changed files with 9 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ dependencies {
testCompile 'com.jayway.restassured:rest-assured'
testCompile 'io.rest-assured:rest-assured'
testCompile 'org.apache.tomcat.embed:tomcat-embed-core:8.5.11'
testCompile 'org.apache.tomcat.embed:tomcat-embed-core:8.5.13'
testCompile 'org.mockito:mockito-core'
testCompile 'org.hamcrest:hamcrest-library'
testCompile project(path: ':spring-restdocs-core', configuration: 'testArtifacts')

View File

@@ -289,7 +289,7 @@ public class RestAssuredRestDocumentationIntegrationTests {
is(snippet(asciidoctor())
.withContents(httpResponse(asciidoctor(), HttpStatus.OK).header(
HttpHeaders.SET_COOKIE,
"name=value;domain=localhost;HttpOnly"))));
"name=value; Domain=localhost; HttpOnly"))));
}
@Test

View File

@@ -288,7 +288,7 @@ public class RestAssuredRestDocumentationIntegrationTests {
is(snippet(asciidoctor())
.withContents(httpResponse(asciidoctor(), HttpStatus.OK).header(
HttpHeaders.SET_COOKIE,
"name=value;domain=localhost;HttpOnly"))));
"name=value; Domain=localhost; HttpOnly"))));
}
@Test