Add support for multipart form content-type
This commit is contained in:
parent
94c9631d91
commit
dfb10a6316
1 changed files with 4 additions and 3 deletions
|
@ -55,9 +55,10 @@ func Setup(opts *cnf.Options) (err error) {
|
||||||
|
|
||||||
s.Use(mw.Type(&mw.TypeOpts{
|
s.Use(mw.Type(&mw.TypeOpts{
|
||||||
AllowedContent: map[string]bool{
|
AllowedContent: map[string]bool{
|
||||||
"application/json": true,
|
"application/json": true,
|
||||||
"application/cbor": true,
|
"application/cbor": true,
|
||||||
"application/msgpack": true,
|
"application/msgpack": true,
|
||||||
|
"application/x-www-form-urlencoded": true,
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue