logic bug in RequestsUrlReader means read_compressed is always used.
Bug #1797403 reported by
Scott Moser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams |
Confirmed
|
Medium
|
Unassigned |
Bug Description
RequestsUrlReader has this blob of code in its __init__
ce = self.req.
if 'gzip' in ce or 'deflate' in ce:
else:
That if statement will always take the rad_compressed route
because bool('gzip') will always return true.
So we really needed:
if 'gzip' in ce or 'deflate' in ce:
...
Changed in simplestreams: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.