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