abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r550956 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
Date Tue, 26 Jun 2007 21:27:44 GMT
Author: jmsnell
Date: Tue Jun 26 14:27:43 2007
New Revision: 550956

URL: http://svn.apache.org/viewvc?view=rev&rev=550956
Log:
Not modified should not contain a response entity

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java?view=diff&rev=550956&r1=550955&r2=550956
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/AbstractProvider.java
Tue Jun 26 14:27:43 2007
@@ -191,11 +191,9 @@
     Abdera abdera, 
     RequestContext request,
     String reason) {
-      return returnBase(
-        createErrorDocument(
-          abdera, 304, 
-          reason, null), 
-        304, null);
+      EmptyResponseContext rc = new EmptyResponseContext(304);
+      rc.setStatusText(reason);
+      return rc;
   }
 
   protected ResponseContext preconditionfailed(



Mime
View raw message