Just respond with an empty body on PUT requests

This commit is contained in:
galfert 2012-10-22 12:59:07 +02:00
parent 544400b138
commit 95adfff6ab
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,8 @@ module RemoteStorage
object.reload
timestamp = object.last_modified.to_i
update_all_directory_objects(user, directory, timestamp)
halt 200
rescue ::Riak::HTTPFailedRequest
halt 422
end

View File

@ -84,6 +84,7 @@ describe "App with Riak backend" do
it "saves the value" do
last_response.status.must_equal 200
last_response.body.must_equal ""
data_bucket.get("jimmy:documents:bar").data.must_equal "another text"
end