Skip to content

Commit

Permalink
trimmmin' them
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 17, 2024
1 parent f18a67c commit 81de1fc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 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 @@ -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{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 81de1fc

Please sign in to comment.