diff --git a/httpclient/multipartrequest.go b/httpclient/multipartrequest.go index f67fa17..3b9491a 100644 --- a/httpclient/multipartrequest.go +++ b/httpclient/multipartrequest.go @@ -65,7 +65,7 @@ type UploadState struct { // // // Use `result` or `resp` as needed func (c *Client) DoMultiPartRequest(method, endpoint string, files map[string][]string, formDataFields map[string]string, fileContentTypes map[string]string, formDataPartHeaders map[string]http.Header, encodingType string, out interface{}) (*http.Response, error) { - if encodingType != "raw" && encodingType != "base64" { + if encodingType != "byte" && encodingType != "base64" { c.Sugar.Errorw("Invalid encoding type specified", zap.String("encodingType", encodingType)) return nil, fmt.Errorf("invalid encoding type: %s. Must be 'raw' or 'base64'", encodingType) }