change HttpServletResponse to HttpServletRequest

This commit is contained in:
wuwo
2017-05-02 17:26:42 +08:00
parent 69622e909b
commit c6347ec9c8

View File

@@ -70,7 +70,7 @@ public class RibbonRoutingFilter extends ZuulFilter {
this.requestCustomizers = requestCustomizers;
// To support Servlet API 3.0.1 we need to check if getcontentLengthLong exists
try {
HttpServletResponse.class.getMethod("getContentLengthLong");
HttpServletRequest.class.getMethod("getContentLengthLong");
} catch(NoSuchMethodException e) {
useServlet31 = false;
}