1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-09 22:06:47 +00:00

Clarification: First parameter is only a label.

This commit is contained in:
Markus Birth 2018-01-12 00:44:18 +01:00
parent a3dca9a52a
commit 20abad9e04
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -399,10 +399,10 @@ class FotaCheck:
print(repr(req.text))
raise SystemExit
def do_checksum(self, encslave, uri1, uri2):
def do_checksum(self, encslave, address, uri):
url = "http://" + encslave + "/checksum.php"
params = self.get_creds2()
params[b"address"] = bytes('{"' + uri1 + '":"' + uri2 + '"}', "utf-8")
params[b"address"] = bytes('{"' + address + '":"' + uri + '"}', "utf-8")
#print(repr(dict(params)))
req = self.sess.post(url, data=params)