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:
parent
a3dca9a52a
commit
20abad9e04
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user