1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

Fix for EOF issue (#2143)

* Fix GetHTTPResponse fuc

* Add time.sleep statement
This commit is contained in:
MuellerHenrik
2020-10-08 11:08:58 +02:00
committed by GitHub
parent fae01c9cd7
commit a70c0dfaed
5 changed files with 18 additions and 3 deletions

View File

@@ -124,9 +124,8 @@ func GetHTTPResponse(requestType string, connectionDetails ConnectionDetailsHTTP
header["Accept"] = []string{"application/json"}
header["x-csrf-token"] = []string{connectionDetails.XCsrfToken}
req, err := client.SendRequest(requestType, connectionDetails.URL, bytes.NewBuffer(body), header, nil)
req.Close = true
return req, err
httpResponse, err := client.SendRequest(requestType, connectionDetails.URL, bytes.NewBuffer(body), header, nil)
return httpResponse, err
}
// HandleHTTPError handles ABAP error messages which can occur when using OData services