You've already forked sap-jenkins-library
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user