From 9c3198e5bd3e33b5c3cf3f27b3b867296bc2ab3d 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 --- rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.go b/rpc.go index 5a22ed5..e382391 100644 --- a/rpc.go +++ b/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