Just respond with an empty body on PUT requests
This commit is contained in:
parent
544400b138
commit
95adfff6ab
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user