remove TODO since servlet 3.0 support is still needed.

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