polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject zest-java git commit: Rstoring previous commit. The "Forgot to set SUCCESS in ZestEntityRestlet, causing a 303..." was a sideeffect of other handling.
Date Sat, 05 Dec 2015 09:19:21 GMT
Repository: zest-java
Updated Branches:
  refs/heads/develop d117531c5 -> 2d33d34bd


Rstoring previous commit. The "Forgot to set SUCCESS in ZestEntityRestlet, causing a 303..."
was a sideeffect of other handling.


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/2d33d34b
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/2d33d34b
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/2d33d34b

Branch: refs/heads/develop
Commit: 2d33d34bd3bd7bab33ee627cbd26a0f694b801e0
Parents: d117531
Author: Niclas Hedhman <niclas@hedhman.org>
Authored: Sat Dec 5 17:18:56 2015 +0800
Committer: Niclas Hedhman <niclas@hedhman.org>
Committed: Sat Dec 5 17:18:56 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/zest/library/restlet/ZestEntityRestlet.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/2d33d34b/libraries/restlet/src/main/java/org/apache/zest/library/restlet/ZestEntityRestlet.java
----------------------------------------------------------------------
diff --git a/libraries/restlet/src/main/java/org/apache/zest/library/restlet/ZestEntityRestlet.java
b/libraries/restlet/src/main/java/org/apache/zest/library/restlet/ZestEntityRestlet.java
index 1edddb7..292d0b6 100644
--- a/libraries/restlet/src/main/java/org/apache/zest/library/restlet/ZestEntityRestlet.java
+++ b/libraries/restlet/src/main/java/org/apache/zest/library/restlet/ZestEntityRestlet.java
@@ -129,7 +129,6 @@ public class ZestEntityRestlet<T extends Identity> extends Restlet
             {
                 put( request, response );
             }
-            response.setStatus( Status.SUCCESS_OK );
         }
         catch( RuntimeException e )
         {
@@ -182,7 +181,7 @@ public class ZestEntityRestlet<T extends Identity> extends Restlet
     {
         execute( request, response, resource -> {
             resource.delete();
-            response.setStatus( Status.SUCCESS_OK );
+            response.setStatus( Status.SUCCESS_NO_CONTENT );
         } );
     }
 


Mime
View raw message