]> git.saurik.com Git - apt.git/commit
use the same redirection handling for http and https
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 2 Aug 2016 12:49:58 +0000 (14:49 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 10 Aug 2016 21:19:44 +0000 (23:19 +0200)
commit4bba5a88d0f6afde4414b586b64c48a4851d5324
tree458faf656cc61045c5f1f1a3443c2110c3514d55
parent57401c48fadc0c78733a67294f9cc20a57e527c9
use the same redirection handling for http and https

cURL which backs our https implementation can handle redirects on its
own, but by dealing with them on our own we gain finer control over which
redirections will be performed (we don't like https → http) and by whom
so that redirections to other hosts correctly spawn a new https method
dealing with these instead of letting the current one deal with it.
methods/http.cc
methods/http.h
methods/https.cc
methods/server.cc
methods/server.h
test/integration/test-apt-https-no-redirect
test/integration/test-partial-file-support