From 924989d72a7b2ff51348be75ffd04cea3abf5ce7 Mon Sep 17 00:00:00 2001 From: Arthur Outhenin-Chalandre Date: Fri, 8 Jul 2022 12:10:52 +0200 Subject: [PATCH] roger: fix put not sending json data Signed-off-by: Arthur Outhenin-Chalandre --- cern/util_roger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cern/util_roger.go b/cern/util_roger.go index 703fb24..7238e7d 100644 --- a/cern/util_roger.go +++ b/cern/util_roger.go @@ -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[:])) }