You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-11-06 09:09:19 +02:00
top (#4787)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user