From 81de1fc73bf51f23176d775543d1e2e1288f9aa2 Mon Sep 17 00:00:00 2001 From: Itamar Yuran Date: Tue, 17 Dec 2024 19:33:34 +0200 Subject: [PATCH] trimmmin' them --- pkg/gateway/operations/putobject.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/gateway/operations/putobject.go b/pkg/gateway/operations/putobject.go index c9186a5f5e5..fd169e1d347 100644 --- a/pkg/gateway/operations/putobject.go +++ b/pkg/gateway/operations/putobject.go @@ -2,7 +2,6 @@ package operations import ( "errors" - "fmt" "net/http" "net/url" "strconv" @@ -32,8 +31,6 @@ type PutObject struct{} func (controller *PutObject) RequiredPermissions(req *http.Request, repoID, _, destPath string) (permissions.Node, error) { copySource := req.Header.Get(CopySourceHeader) - noneMatch := req.Header.Get(CopySourceHeader) - fmt.Println(copySource, noneMatch) if len(copySource) == 0 { return permissions.Node{ Permission: permissions.Permission{ @@ -336,8 +333,6 @@ func handlePut(w http.ResponseWriter, req *http.Request, o *PathOperation) { func (o *PathOperation) checkIfAbsent(req *http.Request) error { Header := req.Header.Get(IfNoneMatchHeader) - fmt.Println("o.path", o.Path) - fmt.Println("Header ", Header) switch Header { case "": return nil