Commit e52e251e authored by Ad Schellevis's avatar Ad Schellevis

(proxy) decode content when downloading ACL, closes https://github.com/opnsense/core/issues/1510

parent 8d745baa
......@@ -84,9 +84,9 @@ class Downloader(object):
req_opts['verify'] = False
if self._username is not None:
req_opts['auth'] = (self._username, self._password)
req = requests.get(**req_opts)
if req.status_code == 200:
req.raw.decode_content = True
self._source_handle = tempfile.NamedTemporaryFile('wb+', 10240)
while True:
data = req.raw.read(10240)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment