Skip to content

Commit

Permalink
(proxy) decode content when downloading ACL, closes #1510
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Mar 30, 2017
1 parent 8d745ba commit e52e251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opnsense/scripts/proxy/fetchACLs.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def fetch(self):
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)
Expand Down

0 comments on commit e52e251

Please sign in to comment.