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 GitHub
parent 2998735bf3
commit a60426c884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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