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:
parent
61564ea229
commit
d115858ead
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user