remove TODO since servlet 3.0 support is still needed.

parent 07177672
...@@ -72,8 +72,8 @@ public class SendResponseFilter extends ZuulFilter { ...@@ -72,8 +72,8 @@ public class SendResponseFilter extends ZuulFilter {
public SendResponseFilter() { public SendResponseFilter() {
super(); super();
// To support Servlet API 3.1 we need to check if setContentLengthLong exists // To support Servlet API 3.1 we need to check if setContentLengthLong exists
// minimum support in Spring 5 is 3.0 so we need to keep tihs
try { try {
//TODO: remove in 2.0
HttpServletResponse.class.getMethod("setContentLengthLong", long.class); HttpServletResponse.class.getMethod("setContentLengthLong", long.class);
} catch(NoSuchMethodException e) { } catch(NoSuchMethodException e) {
useServlet31 = false; useServlet31 = false;
......
...@@ -69,8 +69,8 @@ public class RibbonRoutingFilter extends ZuulFilter { ...@@ -69,8 +69,8 @@ public class RibbonRoutingFilter extends ZuulFilter {
this.ribbonCommandFactory = ribbonCommandFactory; this.ribbonCommandFactory = ribbonCommandFactory;
this.requestCustomizers = requestCustomizers; this.requestCustomizers = requestCustomizers;
// To support Servlet API 3.1 we need to check if getContentLengthLong exists // To support Servlet API 3.1 we need to check if getContentLengthLong exists
// Spring 5 minimum support is 3.0, so this stays
try { try {
//TODO: remove in 2.0
HttpServletRequest.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