diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/common/FileUploadHttpServletRequest.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/common/FileUploadHttpServletRequest.java index 41218e9d..0a316372 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/common/FileUploadHttpServletRequest.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/common/FileUploadHttpServletRequest.java @@ -55,6 +55,14 @@ public class FileUploadHttpServletRequest implements HttpServletRequest { return data.length; } + /** + * 最关键这个要返回正确 + */ + @Override + public String getContentType() { + return serverHttpRequest.getHeaders().getContentType().toString(); + } + @Override public String getAuthType() { return null; @@ -235,11 +243,6 @@ public class FileUploadHttpServletRequest implements HttpServletRequest { } - @Override - public String getContentType() { - return serverHttpRequest.getHeaders().getContentType().toString(); - } - @Override public String getParameter(String s) { return null;