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):