Commit ab2cf59b by Ryan Baxter Committed by GitHub

Merge pull request #1907 from spccold/zuul-filter-bugfix

change HttpServletResponse to HttpServletRequest
parents a315ac9e c6347ec9
...@@ -70,7 +70,7 @@ public class RibbonRoutingFilter extends ZuulFilter { ...@@ -70,7 +70,7 @@ public class RibbonRoutingFilter extends ZuulFilter {
this.requestCustomizers = requestCustomizers; this.requestCustomizers = requestCustomizers;
// To support Servlet API 3.0.1 we need to check if getcontentLengthLong exists // To support Servlet API 3.0.1 we need to check if getcontentLengthLong exists
try { try {
HttpServletResponse.class.getMethod("getContentLengthLong"); HttpServletRequest.class.getMethod("getContentLengthLong");
} catch(NoSuchMethodException e) { } catch(NoSuchMethodException e) {
useServlet31 = false; useServlet31 = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment