Commits

Anonymous committed fdf4ed1

Override sendRedirect to update the status code correctly
Issue number:
Obtained from:
Submitted by:
Reviewed by:

  • Participants
  • Parent commits d25c237

Comments (0)

Files changed (1)

src/core/java/com/opensymphony/oscache/web/filter/CacheHttpServletResponseWrapper.java

         this.status = status;
     }
 
+    public void sendRedirect(String location) throws IOException {
+        this.status = SC_MOVED_TEMPORARILY;
+        super.sendRedirect(location);
+    }
+
     /**
      * Retrieves the captured HttpResponse status.
      */