1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-09-19 22:33:25 +01:00

Also dump download responses.

This commit is contained in:
Markus Birth 2017-11-02 02:08:22 +01:00
parent 19fe09a3f7
commit a39cc4d050
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -282,6 +282,7 @@ class FotaCheck:
#print(repr(dict(params))) #print(repr(dict(params)))
req = self.sess.post(url, data=params) req = self.sess.post(url, data=params)
if req.status_code == 200: if req.status_code == 200:
self.write_dump(req.text)
return req.text return req.text
else: else:
print("REQUEST: " + repr(req)) print("REQUEST: " + repr(req))