Author: remy.maucherat(a)jboss.com
Date: 2009-02-13 10:19:22 -0500 (Fri, 13 Feb 2009)
New Revision: 929
Modified:
branches/2.1.x/java/org/jboss/web/rewrite/RewriteValve.java
branches/2.1.x/webapps/docs/changelog.xml
Log:
- Port RewriteValve patch.
Modified: branches/2.1.x/java/org/jboss/web/rewrite/RewriteValve.java
===================================================================
--- branches/2.1.x/java/org/jboss/web/rewrite/RewriteValve.java 2009-02-12 09:28:16 UTC
(rev 928)
+++ branches/2.1.x/java/org/jboss/web/rewrite/RewriteValve.java 2009-02-13 15:19:22 UTC
(rev 929)
@@ -349,6 +349,7 @@
urlString.insert(0, request.getContext().getEncodedPath());
}
response.sendRedirect(urlString.toString());
+ response.setStatus(rules[i].getRedirectCode());
done = true;
break;
}
Modified: branches/2.1.x/webapps/docs/changelog.xml
===================================================================
--- branches/2.1.x/webapps/docs/changelog.xml 2009-02-12 09:28:16 UTC (rev 928)
+++ branches/2.1.x/webapps/docs/changelog.xml 2009-02-13 15:19:22 UTC (rev 929)
@@ -36,6 +36,9 @@
<fix>
<bug>39013</bug>: Fix appBase test when deleting resources. (markt)
</fix>
+ <fix>
+ Status code for redirect rule in rewrite valve. (jfclere)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
Show replies by date