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)