Skip to content

Commit

Permalink
Deleting a nonexistent slot should return 204 No Content to match S3
Browse files Browse the repository at this point in the history
  • Loading branch information
santry authored and mattjamieson committed Oct 23, 2009
1 parent ae3b31e commit 395eac6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/parkplace/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ def delete(bucket_name, oid)
@slot = bucket.find_slot(oid)
@slot.destroy
r(204, '')
rescue NoSuchKey
r(204, '')
end
end
end

0 comments on commit 395eac6

Please sign in to comment.