Skip to content

Commit

Permalink
this time bby
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 26, 2024
1 parent c4387d9 commit 51d8105
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion esti/s3_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func TestS3IfNoneMatch(t *testing.T) {
{Path: "main/object1", Content: "data", IfNoneMatch: "*", ExpectError: true},
{Path: "main/object2", Content: "data", IfNoneMatch: "*", ExpectError: false},
{Path: "main/object2", Content: "data", IfNoneMatch: "", ExpectError: false},
{Path: "main/object3", Content: "data", IfNoneMatch: "hi", ExpectError: true},
{Path: "main/object2", Content: "data", IfNoneMatch: "*", ExpectError: true},
}

objects := make(chan TestCase, parallelism*2)
Expand Down
7 changes: 0 additions & 7 deletions pkg/gateway/operations/putobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package operations

import (
"errors"
"fmt"
"net/http"
"net/url"
"strconv"
Expand Down Expand Up @@ -341,13 +340,7 @@ func handlePut(w http.ResponseWriter, req *http.Request, o *PathOperation) {
}

func (o *PathOperation) checkIfAbsent(req *http.Request) (bool, error) {
for key, values := range req.Header {
for _, value := range values {
fmt.Printf("HEADER: %s = %s\n", key, value)
}
}
Header := req.Header.Get(IfNoneMatchHeader)
fmt.Println("HEADER: ", Header)
if Header == "" {
return true, nil
}
Expand Down

0 comments on commit 51d8105

Please sign in to comment.