summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/modules/binding-atom-abdera/src/main
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-26 19:17:45 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-26 19:17:45 +0000
commit6c9f9282a4128828935410540d99faae793cee17 (patch)
tree5e87b13448739c1e59feea509db8ce1729800378 /sca-java-1.x/trunk/modules/binding-atom-abdera/src/main
parent958f042702b2b8fa766b6117da4212e4bfb58edd (diff)
Merge r1025777 TUSCANY-3743: Return correct response code from If-Unmodified-Since
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1027693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/modules/binding-atom-abdera/src/main')
-rw-r--r--sca-java-1.x/trunk/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java b/sca-java-1.x/trunk/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
index 3975fe1220..4765370a9c 100644
--- a/sca-java-1.x/trunk/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
+++ b/sca-java-1.x/trunk/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
@@ -280,7 +280,7 @@ class AtomBindingListenerServlet extends HttpServlet {
Date predicateDate = dateFormat.parse( predicate );
if ( predicateDate.compareTo( exactSeconds(feedUpdated) ) < 0 ) {
// Match, should short circuit
- response.sendError(HttpServletResponse.SC_NOT_MODIFIED);
+ response.sendError(HttpServletResponse.SC_PRECONDITION_FAILED);
return;
}
} catch ( java.text.ParseException e ) {