提交 411ff845 编写于 作者: R Rob Winch

Refine tests for SPR-14066

Explicitly define the response type as text/plain to avoid content type
confusion.

Issue SPR-14066
上级 e2ba4774
......@@ -139,7 +139,7 @@ public class MockMvcWebClientBuilderTests {
@RestController
static class CookieController {
@RequestMapping("/")
@RequestMapping(value="/", produces="text/plain")
public String cookie(@CookieValue("cookie") String cookie) {
return cookie;
}
......
......@@ -158,7 +158,7 @@ public class MockMvcHtmlUnitDriverBuilderTests {
@RestController
static class CookieController {
@RequestMapping("/")
@RequestMapping(value="/", produces="text/plain")
public String cookie(@CookieValue("cookie") String cookie) {
return cookie;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册