mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(proxy) decode content when downloading ACL, closes https://github.com/opnsense/core/issues/1510
This commit is contained in:
parent
8d745baa6c
commit
e52e251e5e
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user