We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0dd995c + a530953 commit 4b83bc9Copy full SHA for 4b83bc9
httpclient/multipartrequest.go
@@ -65,7 +65,7 @@ type UploadState struct {
65
//
66
// // Use `result` or `resp` as needed
67
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) {
68
- if encodingType != "raw" && encodingType != "base64" {
+ if encodingType != "byte" && encodingType != "base64" {
69
c.Sugar.Errorw("Invalid encoding type specified", zap.String("encodingType", encodingType))
70
return nil, fmt.Errorf("invalid encoding type: %s. Must be 'raw' or 'base64'", encodingType)
71
}
0 commit comments