From 2589808f45e06874396a0ec25d5d741f64e4d4f4 Mon Sep 17 00:00:00 2001 From: guzeng Date: Thu, 27 Jan 2022 17:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=91=E9=80=81xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/http.go b/http.go index d448f49..c4cde0f 100755 --- a/http.go +++ b/http.go @@ -1,6 +1,8 @@ package network import ( + "bytes" + "encoding/xml" "io/ioutil" "net/http" "strings" @@ -97,7 +99,7 @@ func SendXml(method, url string, requestxml interface{}, header ...map[string]st httpClient := &http.Client{} - req, err := http.NewRequest(method, url, bytes.NewBuffer(param)) + req, err := http.NewRequest(method, url, bytes.NewBuffer(bytexml)) if err != nil { return []byte(""), err }