Enable support for compression in curl
Bug #297623 reported by
Andreas Hasenack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Wishlist
|
Andreas Hasenack | ||
Landscape Server |
Invalid
|
Wishlist
|
Unassigned | ||
landscape-client (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Karmic |
Won't Fix
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Landscape's staging server already supports gzip encoding in http(s) transfers, and we will put it in place in production too sometime soon.
In order to take advantage of this, the client needs to enable this support in curl. I did some tests and it seems this change is enough:
--- lib/fetch.py 2008-11-05 17:06:55.000000000 -0200
+++ lib/fetch.py 2008-11-11 19:18:04.000000000 -0200
@@ -39,6 +39,7 @@
curl.
curl.
curl.
+ curl.setopt(
curl.perform()
return input.getvalue()
Related branches
lp://staging/~ahasenack/landscape-client/297623-curl-compression
- Jamu Kakar (community): Approve
- Thomas Herve (community): Approve
-
Diff: 84 lines (+15/-7)2 files modifiedlandscape/lib/fetch.py (+1/-0)
landscape/lib/tests/test_fetch.py (+14/-7)
Changed in landscape-client: | |
importance: | Undecided → Low |
Changed in landscape: | |
milestone: | mountainview-pre-1 → mountainview-pre-2 |
Changed in landscape: | |
milestone: | mountainview-pre-2 → mountainview-pre-3 |
Changed in landscape: | |
milestone: | mountainview-pre-3 → mountainview |
Changed in landscape-client: | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
milestone: | 1.0.x → 1.5.4 |
Changed in landscape-client: | |
milestone: | 1.5.4 → 1.5.5 |
Changed in landscape-client: | |
milestone: | 1.5.5 → later |
Changed in landscape-client: | |
status: | Confirmed → Fix Committed |
milestone: | later → 11.02 |
tags: |
added: verification-done removed: verification-needed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
(should be "low" for landscape-client (Ubuntu))