Polish "Add support for documenting request and response cookies"
See gh-592
This commit is contained in:
@@ -48,6 +48,7 @@ import org.springframework.util.StreamUtils;
|
||||
* {@link FilterableRequestSpecification}.
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
* @author Clyde Stubbs
|
||||
*/
|
||||
class RestAssuredRequestConverter implements RequestConverter<FilterableRequestSpecification> {
|
||||
|
||||
|
||||
@@ -53,10 +53,9 @@ class RestAssuredResponseConverter implements ResponseConverter<Response> {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
List<ResponseCookie> cookies = new ArrayList<>();
|
||||
for (Map.Entry<String, String> servletCookie : response.getCookies().entrySet()) {
|
||||
cookies.add(new ResponseCookie(servletCookie.getKey(), servletCookie.getValue()));
|
||||
for (Map.Entry<String, String> cookie : response.getCookies().entrySet()) {
|
||||
cookies.add(new ResponseCookie(cookie.getKey(), cookie.getValue()));
|
||||
}
|
||||
headers.remove(HttpHeaders.COOKIE);
|
||||
return cookies;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user