1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00
This commit is contained in:
Daniel Mieg
2024-02-02 20:07:31 +01:00
committed by GitHub
parent 10b518fd70
commit 7575539c5a

View File

@@ -311,9 +311,11 @@ func (api *SAP_COM_0948) initialRequest() error {
Password: api.con.Password,
})
// HEAD request to the root is not sufficient, as an unauthorized called is allowed to do so
// Therefore, the request goes to the "Actions" entity without actually fetching data
headConnection := api.con
headConnection.XCsrfToken = "fetch"
headConnection.URL = api.con.URL + api.path + api.actionsEntity
headConnection.URL = api.con.URL + api.path + api.actionsEntity + "?$top=0"
// Loging into the ABAP System - getting the x-csrf-token and cookies
resp, err := GetHTTPResponse("GET", headConnection, nil, api.client)