From: qydysky Date: Sun, 13 Jun 2021 14:15:41 +0000 (+0800) Subject: reqf post type X-Git-Tag: v0.5.25 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=c2e6ad004fe8ba1c99954148456254164695f95a;p=part%2F.git reqf post type --- 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())