From a60426c884629782ecaae86412e1c9683fe4d2ca Mon Sep 17 00:00:00 2001 From: dy1006 <34502305+dy1006@users.noreply.github.com> Date: Thu, 27 Aug 2020 17:24:19 +0800 Subject: [PATCH] Update rpc.go (#1975) Co-authored-by: Asim Aslam --- api/handler/rpc/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/rpc/rpc.go b/api/handler/rpc/rpc.go index 5a22ed54..e382391f 100644 --- a/api/handler/rpc/rpc.go +++ b/api/handler/rpc/rpc.go @@ -249,7 +249,7 @@ func requestPayload(r *http.Request) ([]byte, error) { return nil, err } return raw.Marshal() - case strings.Contains(ct, "application/www-x-form-urlencoded"): + case strings.Contains(ct, "application/x-www-form-urlencoded"): r.ParseForm() // generate a new set of values from the form