1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

set User-Agent Header (#2797)

This commit is contained in:
tiloKo 2021-04-29 13:30:25 +02:00 committed by GitHub
parent d766f6befe
commit 9ac29fd8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,7 @@ func (conn *Connector) InitAAKaaS(aAKaaSEndpoint string, username string, passwo
conn.Header = make(map[string][]string)
conn.Header["Accept"] = []string{"application/json"}
conn.Header["Content-Type"] = []string{"application/json"}
conn.Header["User-Agent"] = []string{"Piper-abapAddonAssemblyKit/1.0"}
cookieJar, _ := cookiejar.New(nil)
conn.Client.SetOptions(piperhttp.ClientOptions{