incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1149048 - /incubator/deltacloud/trunk/server/server.rb
Date Thu, 21 Jul 2011 06:49:27 GMT
Author: marios
Date: Thu Jul 21 06:49:26 2011
New Revision: 1149048

URL: http://svn.apache.org/viewvc?rev=1149048&view=rev
Log:
Fix response codes for get/set blob metadata. Both these calls do
not return a message body, so status should be 204 No Content.

Modified:
    incubator/deltacloud/trunk/server/server.rb

Modified: incubator/deltacloud/trunk/server/server.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/server.rb?rev=1149048&r1=1149047&r2=1149048&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/server.rb (original)
+++ incubator/deltacloud/trunk/server/server.rb Thu Jul 21 06:49:26 2011
@@ -797,6 +797,10 @@ head "#{Sinatra::UrlForHelper::DEFAULT_U
       @blob_metadata.each do |k,v|
         headers["X-Deltacloud-Blobmeta-#{k}"] = v
       end
+      respond_to do |format|
+        format.xml {  204 }
+        format.json {  204 }
+      end
    else
     report_error(404)
   end
@@ -810,6 +814,10 @@ post "#{Sinatra::UrlForHelper::DEFAULT_U
     meta_hash.each do |k,v|
       headers["X-Deltacloud-Blobmeta-#{k}"] = v
     end
+    respond_to do |format|
+      format.xml {  204 }
+      format.json {  204 }
+    end
   else
     report_error(404) #FIXME is this the right error code?
   end



Mime
View raw message