Skip to content

Commit 6e9dfd2

Browse files
authored
Update openapi3filter/req_resp_decoder.go
1 parent d6eeae0 commit 6e9dfd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

openapi3filter/req_resp_decoder.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,8 +1257,7 @@ func decodeBody(body io.Reader, header http.Header, schema *openapi3.SchemaRef,
12571257
mediaType := parseMediaType(contentType)
12581258
decoder, ok := bodyDecoders[mediaType]
12591259
if !ok && isBinary(schema) {
1260-
ok = true
1261-
decoder = FileBodyDecoder
1260+
ok, decoder = true, FileBodyDecoder
12621261
}
12631262

12641263
if !ok {

0 commit comments

Comments
 (0)