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

Issue: SPR-13587, SPR-13643
This commit is contained in:
Rossen Stoyanchev
2015-11-11 17:47:34 -05:00
parent f5f57e9544
commit 92ca537d61

View File

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