ueditor 请求头 X_Requested_With 重命名 X-Requested-With

This commit is contained in:
thinkgem
2021-05-15 21:22:24 +08:00
parent 347a08fb80
commit 2ea39dd4d8
4 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ public class BinaryUploader {
Map<String, Object> conf) {
FileItemStream fileStream = null; // 原始上传
MultipartFile fileStream2 = null; // Spring MVC 上传
boolean isAjaxUpload = request.getHeader( "X_Requested_With" ) != null;
boolean isAjaxUpload = request.getHeader("X-Requested-With") != null;
if (!ServletFileUpload.isMultipartContent(request)) {
return new BaseState(false, AppInfo.NOT_MULTIPART_CONTENT);