]> 127.0.0.1 Git - part/.git/commitdiff
reqf post type v0.5.25
authorqydysky <qydysky@foxmail.com>
Sun, 13 Jun 2021 14:15:41 +0000 (22:15 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 13 Jun 2021 14:15:41 +0000 (22:15 +0800)
reqf/Reqf.go

index 129d65116b421e23d25a4ddc1e36e4a5aa35690a..7b8784994c4649685a71d9a96db9f720aa69d9ba 100644 (file)
@@ -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())