Public bug reported: 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.setopt(pycurl.FOLLOWLOCATION, True) curl.setopt(pycurl.MAXREDIRS, 5) curl.setopt(pycurl.WRITEFUNCTION, input.write) + curl.setopt(pycurl.ENCODING, "gzip, deflate") curl.perform() return input.getvalue() ** Affects: landscape Importance: Wishlist Status: Confirmed ** Affects: landscape-client Importance: Wishlist Status: Confirmed ** Affects: landscape-client (Ubuntu) Importance: Undecided Status: Confirmed ** Description changed: 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.setopt(pycurl.FOLLOWLOCATION, True) curl.setopt(pycurl.MAXREDIRS, 5) curl.setopt(pycurl.WRITEFUNCTION, input.write) - + curl.setopt(pycurl.ENCODING, "gzip, deflate") + + curl.setopt(pycurl.ENCODING, "gzip, deflate") curl.perform() return input.getvalue() ** Description changed: 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.setopt(pycurl.FOLLOWLOCATION, True) curl.setopt(pycurl.MAXREDIRS, 5) curl.setopt(pycurl.WRITEFUNCTION, input.write) - + curl.setopt(pycurl.ENCODING, "gzip, deflate") + + curl.setopt(pycurl.ENCODING, "gzip, deflate") curl.perform() return input.getvalue() ** Also affects: landscape Importance: Undecided Status: New ** Changed in: landscape Importance: Undecided => Wishlist Status: New => Confirmed Target: None => mountainview-pre-1 ** Changed in: landscape-client Importance: Undecided => Wishlist Status: New => Confirmed ** Also affects: landscape-client (Ubuntu) Importance: Undecided Status: New -- Enable support for compression in curl https://bugs.launchpad.net/bugs/297623 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs