1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-21 19:48:53 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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