Add support for multipart form content-type

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-21 18:49:08 +00:00
parent 94c9631d91
commit dfb10a6316

View file

@ -55,9 +55,10 @@ func Setup(opts *cnf.Options) (err error) {
s.Use(mw.Type(&mw.TypeOpts{
AllowedContent: map[string]bool{
"application/json": true,
"application/cbor": true,
"application/msgpack": true,
"application/json": true,
"application/cbor": true,
"application/msgpack": true,
"application/x-www-form-urlencoded": true,
},
}))