*** This bug is a duplicate of bug 245219 ***
    https://bugs.launchpad.net/bugs/245219

** This bug has been marked a duplicate of bug 245219
   Ubuntu archive server returning incorrect content-encoding - content-header 
incorrect type

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/230832

Title:
  apt /usr/lib/apt/methods/http has proxy issues

Status in apt package in Ubuntu:
  Expired

Bug description:
  Binary package hint: apt

  Description:  Ubuntu 8.04
  Release:      8.04
  Source package is: apt-0.7.9ubuntu17

  I am behind a proxy and apt /usr/lib/apt/methods/http does not use the 
correct http headers when fetching the .tar.gz file. This seems to be a 
combination of problems and I am not sure if the proxy is buggy or the 
originating website is buggy. So instead of getting a gzip file, I get a 
gunzipped tar file from the proxy when I try to get any source packages. 
  This subsequently fails checksum.

  Can you please apply this patch, it is just one line:

  diff -r apt-0.7.9ubuntu17/methods/http.cc ../apt-0.7.9ubuntu17/methods/http.cc
  687a688,691
  >    // generate proper encoding
  >    if (Itm->Uri.substr(Itm->Uri.length() - 3) == ".gz") {
  >        strcat(Buf, "Accept-Encoding: gzip,deflate\r\n");
  >    }

  It simply adds the correct Accept-Encoding header flag while
  requesting a .gz file. This fixes my problem and I can do a "apt-get
  source" from behind a proxy as well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/230832/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to