From f697d2fcb4b1d6a930c241692f7c5390d1d5cd3f Mon Sep 17 00:00:00 2001 From: Jason SECULA Date: Wed, 9 Jul 2025 17:57:26 +0200 Subject: [PATCH] =?UTF-8?q?Changement=20de=20l'envoi=20pour=20l'inventaire?= =?UTF-8?q?=20en=20chaine=20de=20caract=C3=A8re=20au=20lieu=20de=20format?= =?UTF-8?q?=20json=20(json=20->=20data)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/includes/GLPIAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/includes/GLPIAPI.py b/scripts/includes/GLPIAPI.py index f2b57e4..39e147d 100644 --- a/scripts/includes/GLPIAPI.py +++ b/scripts/includes/GLPIAPI.py @@ -65,7 +65,7 @@ class GLPIAPI: "Content-Type":"Application/x-compress", "user-agent":self.UserAgent } - return requests.post(self.Server, headers=headers, json=inventory) + return requests.post(self.Server, headers=headers, data=inventory) def UpdateSerialNumber(self, deviceid, serialnumber):