|
@@ -212,7 +212,6 @@ func Invoke(params HttpParams) (str string, rtnHeaders map[string][]string, hcEr
|
212
|
212
|
}
|
213
|
213
|
|
214
|
214
|
reqUrl := params.requestUrl
|
215
|
|
-
|
216
|
215
|
defaultContentType := "application/x-www-form-urlencoded"
|
217
|
216
|
if params.ct.jsonBody != "" {
|
218
|
217
|
_, err = json.Marshal(params.ct.jsonBody)
|
|
@@ -231,7 +230,7 @@ func Invoke(params HttpParams) (str string, rtnHeaders map[string][]string, hcEr
|
231
|
230
|
}
|
232
|
231
|
|
233
|
232
|
req, err := http.NewRequest(method, reqUrl, bytes.NewBufferString(reqStr))
|
234
|
|
-
|
|
233
|
+ req.Close = true
|
235
|
234
|
if err != nil {
|
236
|
235
|
return str, rtnHeaders, &HttpCallerException{Message: "failed to construct http post request", CauseErr: err}
|
237
|
236
|
}
|