Author: jfrederic.clere(a)jboss.com
Date: 2009-02-12 04:28:16 -0500 (Thu, 12 Feb 2009)
New Revision: 928
Modified:
trunk/java/org/jboss/web/rewrite/RewriteValve.java
Log:
Allow the R=code to work (was always 302).
Modified: trunk/java/org/jboss/web/rewrite/RewriteValve.java
===================================================================
--- trunk/java/org/jboss/web/rewrite/RewriteValve.java 2009-02-10 07:44:41 UTC (rev 927)
+++ trunk/java/org/jboss/web/rewrite/RewriteValve.java 2009-02-12 09:28:16 UTC (rev 928)
@@ -111,7 +111,7 @@
public void start() throws LifecycleException {
InputStream is = null;
-
+
// Process configuration file for this valve
if (getContainer() instanceof Context) {
context = true;
@@ -348,6 +348,7 @@
urlString.insert(0, request.getContext().getEncodedPath());
}
response.sendRedirect(urlString.toString());
+ response.setStatus(rules[i].getRedirectCode());
done = true;
break;
}
Show replies by date