From 36f8c46d629c318c952111d5cc1b7a51be2e8c62 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 29 Apr 2025 12:45:40 +0000 Subject: [PATCH] Generate authorization --- services/authorization/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/authorization/client.go b/services/authorization/client.go index 194c10905..9c2709ddf 100644 --- a/services/authorization/client.go +++ b/services/authorization/client.go @@ -308,7 +308,7 @@ func (c *APIClient) prepareRequest( var body *bytes.Buffer // Detect postBody type and post. - if postBody != nil { + if !IsNil(postBody) { contentType := headerParams["Content-Type"] if contentType == "" { contentType = detectContentType(postBody)