Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

DELETE bucket without params fixed #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/fakes3/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,9 @@ def normalize_delete(webrick_req,s_req)
end

if elems.size == 0
raise UnsupportedOperation
elsif elems.size == 1
raise UnsupportedOperation unless s_req.bucket
s_req.type = Request::DELETE_BUCKET
elsif (elems.size == 1) && s_req.is_path_style
s_req.type = Request::DELETE_BUCKET
s_req.query = query
else
Expand Down