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

Fix initial request (#4785)

This commit is contained in:
Daniel Mieg
2024-01-18 20:28:24 +01:00
committed by GitHub
parent 61564ea229
commit d115858ead

View File

@@ -313,10 +313,10 @@ func (api *SAP_COM_0948) initialRequest() error {
headConnection := api.con
headConnection.XCsrfToken = "fetch"
headConnection.URL = api.con.URL + api.path
headConnection.URL = api.con.URL + api.path + api.actionsEntity
// Loging into the ABAP System - getting the x-csrf-token and cookies
resp, err := GetHTTPResponse("HEAD", headConnection, nil, api.client)
resp, err := GetHTTPResponse("GET", headConnection, nil, api.client)
if err != nil {
_, err = HandleHTTPError(resp, err, "Authentication on the ABAP system failed", api.con)
return err