Skip to content

Commit

Permalink
IDS, missing gzip decode on download.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Sep 10, 2017
1 parent 20117ed commit 30fde1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/opnsense/scripts/suricata/lib/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def download(self, proto, url, url_filename, filename, input_filter, auth = None
req = requests.get(**req_opts)

if req.status_code == 200:
req.raw.decode_content = True
src = tempfile.NamedTemporaryFile('wb+', 10240)
while True:
data = req.raw.read(10240)
Expand Down

1 comment on commit 30fde1e

@Stephanowicz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thumbs up!

Thank You!

Please sign in to comment.