[#399] Add OPTIONS method for object operations
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
71bae5cd9a
commit
e25dc90c20
7 changed files with 197 additions and 8 deletions
|
@ -91,9 +91,9 @@ func TestDetermineBucketOperation(t *testing.T) {
|
|||
expected string
|
||||
}{
|
||||
{
|
||||
name: "OptionsOperation",
|
||||
name: "OptionsBucketOperation",
|
||||
method: http.MethodOptions,
|
||||
expected: OptionsOperation,
|
||||
expected: OptionsBucketOperation,
|
||||
},
|
||||
{
|
||||
name: "HeadBucketOperation",
|
||||
|
@ -367,6 +367,11 @@ func TestDetermineObjectOperation(t *testing.T) {
|
|||
headerKeys []string
|
||||
expected string
|
||||
}{
|
||||
{
|
||||
name: "OptionsObjectOperation",
|
||||
method: http.MethodOptions,
|
||||
expected: OptionsObjectOperation,
|
||||
},
|
||||
{
|
||||
name: "HeadObjectOperation",
|
||||
method: http.MethodHead,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue