gateway支持文件上传

1.x
tanghc 5 years ago
parent 0bc0432ac3
commit 27033a7d0a
  1. 13
      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;

Loading…
Cancel
Save