|
|
@ -55,6 +55,14 @@ public class FileUploadHttpServletRequest implements HttpServletRequest { |
|
|
|
return data.length; |
|
|
|
return data.length; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 最关键这个要返回正确 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public String getContentType() { |
|
|
|
|
|
|
|
return serverHttpRequest.getHeaders().getContentType().toString(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String getAuthType() { |
|
|
|
public String getAuthType() { |
|
|
|
return null; |
|
|
|
return null; |
|
|
@ -235,11 +243,6 @@ public class FileUploadHttpServletRequest implements HttpServletRequest { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public String getContentType() { |
|
|
|
|
|
|
|
return serverHttpRequest.getHeaders().getContentType().toString(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String getParameter(String s) { |
|
|
|
public String getParameter(String s) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|