Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
2cc45d87
Commit
2cc45d87
authored
Mar 01, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(proxy) regression in zip file download
(cherry picked from commit
83627572
)
parent
e2a771e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
fetchACLs.py
src/opnsense/scripts/proxy/fetchACLs.py
+1
-3
No files found.
src/opnsense/scripts/proxy/fetchACLs.py
View file @
2cc45d87
...
@@ -55,7 +55,6 @@ class Downloader(object):
...
@@ -55,7 +55,6 @@ class Downloader(object):
self
.
_url
=
url
self
.
_url
=
url
self
.
_timeout
=
timeout
self
.
_timeout
=
timeout
self
.
_source_handle
=
None
self
.
_source_handle
=
None
self
.
_target_data
=
None
def
fetch
(
self
):
def
fetch
(
self
):
""" fetch (raw) source data into tempfile using self._source_handle
""" fetch (raw) source data into tempfile using self._source_handle
...
@@ -107,8 +106,7 @@ class Downloader(object):
...
@@ -107,8 +106,7 @@ class Downloader(object):
compression
=
zipfile
.
ZIP_DEFLATED
)
as
zf
:
compression
=
zipfile
.
ZIP_DEFLATED
)
as
zf
:
for
item
in
zf
.
infolist
():
for
item
in
zf
.
infolist
():
if
item
.
file_size
>
0
:
if
item
.
file_size
>
0
:
yield
item
.
filename
,
zf
.
read
(
item
)
yield
item
.
filename
,
zf
.
open
(
item
)
self
.
_target_data
=
target_data
else
:
else
:
yield
os
.
path
.
basename
(
self
.
_url
),
self
.
_source_handle
yield
os
.
path
.
basename
(
self
.
_url
),
self
.
_source_handle
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment