提交 92ca537d 编写于 作者: R Rossen Stoyanchev

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

Issue: SPR-13587, SPR-13643
上级 f5f57e95
......@@ -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");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册