Changement de l'envoi pour l'inventaire en chaine de caractère au lieu de format json (json -> data)
This commit is contained in:
@ -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):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user