Switch "attachment" to "inline" on Content-Disposition

Issue: SPR-13587, SPR-13643
This commit is contained in:
Rossen Stoyanchev
2015-11-11 17:49:58 -05:00
parent f2e4da3dac
commit 1489e29d0c

View File

@@ -254,7 +254,7 @@ public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
String extInPathParams = StringUtils.getFilenameExtension(pathParams);
if (!safeExtension(servletRequest, ext) || !safeExtension(servletRequest, extInPathParams)) {
headers.add("Content-Disposition", "attachment;filename=f.txt");
headers.add("Content-Disposition", "inline;filename=f.txt");
}
}