Skip to content

Commit

Permalink
Fix initial request (#4785)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMieg authored Jan 18, 2024
1 parent 61564ea commit d115858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/abaputils/sap_com_0948.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d115858

Please sign in to comment.