Skip to content

Commit

Permalink
pront all headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 25, 2024
1 parent 126144f commit 4a56ace
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/gateway/operations/putobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ 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)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

Sensitive data returned by HTTP request headers
flows to a logging call.
}
}
Header := req.Header.Get(IfNoneMatchHeader)
fmt.Println("HEADER: ", Header)
if Header == "" {
Expand Down

0 comments on commit 4a56ace

Please sign in to comment.