From 9ac29fd8e69fd1881046260afde83a3521062514 Mon Sep 17 00:00:00 2001 From: tiloKo <70266685+tiloKo@users.noreply.github.com> Date: Thu, 29 Apr 2021 13:30:25 +0200 Subject: [PATCH] set User-Agent Header (#2797) --- pkg/abap/build/connector.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/abap/build/connector.go b/pkg/abap/build/connector.go index 4805c5315..4040ae9fc 100644 --- a/pkg/abap/build/connector.go +++ b/pkg/abap/build/connector.go @@ -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{