From 19dc5129a3fbda4025c478d0eb9ba2ce32ebddc4 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 16 Jul 2025 14:49:04 +0100 Subject: [PATCH] Added user-agent Signed-off-by: snipe --- jamf2snipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jamf2snipe b/jamf2snipe index eb17500..ac02d34 100755 --- a/jamf2snipe +++ b/jamf2snipe @@ -202,7 +202,7 @@ first_api_call = None # Headers for the API call. logging.info("Creating the headers we'll need for API calls") -jamfbasicheaders = {'Accept': 'application/json','Content-Type':'application/json'} +jamfbasicheaders = {'Accept': 'application/json','Content-Type':'application/json','User-Agent':'Jamf2Snipe CLI'} snipeheaders = {'Authorization': 'Bearer {}'.format(snipe_apiKey),'Accept': 'application/json','Content-Type':'application/json'} logging.debug('Request headers for JamfPro will be: {}\nRequest headers for Snipe will be: {}'.format(jamfbasicheaders, snipeheaders))