diff --git a/services/sqlserverflex/client.go b/services/sqlserverflex/client.go index 1a5506ab5..9ea8afe48 100644 --- a/services/sqlserverflex/client.go +++ b/services/sqlserverflex/client.go @@ -305,7 +305,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)