Browse Source

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

csx 3 years ago
parent
commit
cd5e6e49b1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/csbhttp/httpcaller.go

+ 2 - 1
utils/csbhttp/httpcaller.go View File

@@ -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 {