Skip to content

Commit

Permalink
roger: fix put not sending json data
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Outhenin-Chalandre <[email protected]>
  • Loading branch information
MrFreezeex committed Jul 8, 2022
1 parent 7f68620 commit 924989d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cern/util_roger.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (r Roger) do(ctx context.Context, rogerRequest RogerRequest, method string)
log.Printf("[DEBUG] Request url constructed as follows: %s", url)

var requestData []byte
if method != "GET" && method != "DELETE" && method != "PUT" {
if method != "GET" && method != "DELETE" {
requestData, _ = json.Marshal(rogerRequest)
log.Printf("[DEBUG] Request data: %s", string(requestData[:]))
}
Expand Down

0 comments on commit 924989d

Please sign in to comment.