Skip to content

Commit 4f900dc

Browse files
authored
Merge pull request go-openapi#120 from MStoykov/URLEncodedExceptionOnProducersCheck
add a special case for urlencoded form data when checking for producers
2 parents 1bd9084 + 4559f9f commit 4f900dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func (r *Runtime) Submit(operation *runtime.ClientOperation) (interface{}, error
338338
}
339339
}
340340

341-
if _, ok := r.Producers[cmt]; !ok && cmt != runtime.MultipartFormMime {
341+
if _, ok := r.Producers[cmt]; !ok && cmt != runtime.MultipartFormMime && cmt != runtime.URLencodedFormMime {
342342
return nil, fmt.Errorf("none of producers: %v registered. try %s", r.Producers, cmt)
343343
}
344344

0 commit comments

Comments
 (0)