From dfb10a63164eabee76f2d4ba400e217c892659ee Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 21 Nov 2016 18:49:08 +0000 Subject: [PATCH] Add support for multipart form content-type --- web/web.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/web.go b/web/web.go index c98f51cd..10b1f845 100644 --- a/web/web.go +++ b/web/web.go @@ -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, }, }))