Skip to content

Commit 86ba747

Browse files
committed
Fix failing tests
1 parent 1489e29 commit 86ba747

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private void assertContentDisposition(RequestResponseBodyMethodProcessor process
267267
String header = servletResponse.getHeader("Content-Disposition");
268268
if (expectContentDisposition) {
269269
assertEquals("Expected 'Content-Disposition' header. Use case: '" + comment + "'",
270-
"attachment;filename=f.txt", header);
270+
"inline;filename=f.txt", header);
271271
}
272272
else {
273273
assertNull("Did not expect 'Content-Disposition' header. Use case: '" + comment + "'", header);

spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ public void initialize(GenericWebApplicationContext wac) {
16051605

16061606
assertEquals(200, response.getStatus());
16071607
assertEquals("text/html", response.getContentType());
1608-
assertEquals("attachment;filename=f.txt", response.getHeader("Content-Disposition"));
1608+
assertEquals("inline;filename=f.txt", response.getHeader("Content-Disposition"));
16091609
assertArrayEquals(content, response.getContentAsByteArray());
16101610
}
16111611

0 commit comments

Comments
 (0)