Skip to content

Commit

Permalink
fix(gen): use right recevier to set multipart file array
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Apr 20, 2023
1 parent ca5889e commit 0eb2c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/_template/request_decode.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) decode{{ $op.Name }}Req
{{- end }}
{{- else if $t.IsArray }}
_ = ok
request.Files = make({{ $t.Go }}, 0, len(files))
{{ $recv }} = make({{ $t.Go }}, 0, len(files))
for _, fh := range files {
f, err := fh.Open()
if err != nil {
Expand Down

0 comments on commit 0eb2c4d

Please sign in to comment.