浏览代码

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 年前
父节点
当前提交
cd5e6e49b1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      utils/csbhttp/httpcaller.go

+ 2 - 1
utils/csbhttp/httpcaller.go 查看文件

@@ -230,7 +230,7 @@ func Invoke(params HttpParams) (str string, rtnHeaders map[string][]string, hcEr
230 230
 	}
231 231
 
232 232
 	req, err := http.NewRequest(method, reqUrl, bytes.NewBufferString(reqStr))
233
-	req.Close = true
233
+
234 234
 	if err != nil {
235 235
 		return str, rtnHeaders, &HttpCallerException{Message: "failed to construct http post request", CauseErr: err}
236 236
 	}
@@ -260,6 +260,7 @@ func Invoke(params HttpParams) (str string, rtnHeaders map[string][]string, hcEr
260 260
 	}
261 261
 
262 262
 	//client.Timeout
263
+	req.Close = true
263 264
 	resp, err := client.Do(req)
264 265
 
265 266
 	if err != nil {