Changement de l'envoi pour l'inventaire en chaine de caractère au lieu de format json (json -> data)

This commit is contained in:
Jason SECULA
2025-07-09 17:57:26 +02:00
parent eb1bc4cc3b
commit f697d2fcb4

View File

@ -65,7 +65,7 @@ class GLPIAPI:
"Content-Type":"Application/x-compress", "Content-Type":"Application/x-compress",
"user-agent":self.UserAgent "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): def UpdateSerialNumber(self, deviceid, serialnumber):