Update rpc.go (#1975)

Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
dy1006 2020-08-27 17:24:19 +08:00 committed by Vasiliy Tolstov
parent 3a422231f3
commit 9c3198e5bd

2
rpc.go
View File

@ -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