From c2e6ad004fe8ba1c99954148456254164695f95a Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 13 Jun 2021 22:15:41 +0800 Subject: [PATCH] reqf post type --- reqf/Reqf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reqf/Reqf.go b/reqf/Reqf.go index 129d651..7b87849 100644 --- a/reqf/Reqf.go +++ b/reqf/Reqf.go @@ -139,7 +139,7 @@ func (this *Req) Reqf_1(val Rval) (err error) { if len(PostStr) > 0 { Method = "POST"; body = strings.NewReader(PostStr); - if _,ok := Header["ContentType"];!ok {Header["ContentType"] = "application/x-www-form-urlencoded"} + if _,ok := Header["Content-Type"];!ok {Header["Content-Type"] = "application/x-www-form-urlencoded"} } cx, cancel := context.WithCancel(context.Background()) -- 2.39.2