diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-01-30 20:55:20 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-01-30 20:55:20 +0100 |
commit | 15d7e51550327bf49b95372f84bd0de4e896e7d7 (patch) | |
tree | 06e4ff4732fd8984da57a95c324f5109e47eb73d /apt-pkg/acquire-worker.cc | |
parent | f814fbf4f2c78e3b9ceeeaba3cb93ed0ebbc7943 (diff) |
[ABI break] merge support for http redirects, thanks to
Jeff Licquia and Anthony Towns
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r-- | apt-pkg/acquire-worker.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index 1a754dae9..78c68737c 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -220,6 +220,20 @@ bool pkgAcquire::Worker::RunMessages() Status = LookupTag(Message,"Message"); break; + // 103 Redirect + case 103: + { + if (Itm == 0) + { + _error->Error("Method gave invalid 103 Redirect message"); + break; + } + + string NewURI = LookupTag(Message,"New-URI",URI.c_str()); + Itm->URI = NewURI; + break; + } + // 200 URI Start case 200: { |