Just respond with an empty body on PUT requests
This commit is contained in:
@@ -78,6 +78,8 @@ module RemoteStorage
|
|||||||
object.reload
|
object.reload
|
||||||
timestamp = object.last_modified.to_i
|
timestamp = object.last_modified.to_i
|
||||||
update_all_directory_objects(user, directory, timestamp)
|
update_all_directory_objects(user, directory, timestamp)
|
||||||
|
|
||||||
|
halt 200
|
||||||
rescue ::Riak::HTTPFailedRequest
|
rescue ::Riak::HTTPFailedRequest
|
||||||
halt 422
|
halt 422
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ describe "App with Riak backend" do
|
|||||||
|
|
||||||
it "saves the value" do
|
it "saves the value" do
|
||||||
last_response.status.must_equal 200
|
last_response.status.must_equal 200
|
||||||
|
last_response.body.must_equal ""
|
||||||
data_bucket.get("jimmy:documents:bar").data.must_equal "another text"
|
data_bucket.get("jimmy:documents:bar").data.must_equal "another text"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user