From 0b5a78172bfae42a5ccaf498f6eb31c670a8c6cd Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 29 Apr 2025 12:47:39 +0000 Subject: [PATCH] Generate mongodbflex --- services/mongodbflex/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mongodbflex/client.go b/services/mongodbflex/client.go index 52fd62575..f3d429bf9 100644 --- a/services/mongodbflex/client.go +++ b/services/mongodbflex/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)