diff --git a/lib/rest/rest.go b/lib/rest/rest.go index bca249053..e26336560 100644 --- a/lib/rest/rest.go +++ b/lib/rest/rest.go @@ -393,7 +393,7 @@ func (api *Client) callCodec(opts *Opts, request interface{}, response interface opts.Body = bytes.NewBuffer(requestBody) } } - isMultipart := (opts.MultipartParams != nil || opts.MultipartMetadataName != "") && opts.Body != nil + isMultipart := (opts.MultipartParams != nil || opts.MultipartContentName != "") && opts.Body != nil if isMultipart { params := opts.MultipartParams if params == nil {