From b5f616878bac3673de90e9c47bf8dedbae790dfd Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 1 Jan 2017 17:42:59 -0500 Subject: [PATCH] Remove a querystring parameter to fix v12.2 backups. In the v10 backup routine, we were passing "type=backup" as part of the querystring in addition to POSTing it. This was causing a problem with one v12.2 host, and that's why I'm just going to blame v12.2 for the problem. It looks like the querystring parameter is not needed for any of the other versions/hosts that I've tested against. --- src/untangle/untangle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/untangle/untangle.py b/src/untangle/untangle.py index 31ab60e..c66cd67 100644 --- a/src/untangle/untangle.py +++ b/src/untangle/untangle.py @@ -107,7 +107,7 @@ class Untangle: Returns the binary HTTPS response (i.e. the file). """ - url = self.base_url + '/webui/download?type=backup' + url = self.base_url + '/webui/download' post_vars = {'type': 'backup'} post_data = urllib.parse.urlencode(post_vars).encode('ascii') with self.opener.open(url, post_data) as response: -- 2.43.2