allow http protocol to switch to https
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 13 Feb 2014 23:30:58 +0000 (00:30 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 14 Feb 2014 11:06:28 +0000 (12:06 +0100)
commit9082a1fc7be02f58cbe18a34539c6a3436463dd0
treee8cd4ceb678ef43e7be031c835f6ee7866052e8b
parentf9b4f12d65b827612b29071f05d605bc05fa62bd
allow http protocol to switch to https

switch protocols at random is a bad idea if e.g. http can switch to
file, so we limit the possibilities to http to http and http to https.

As very few people (less than 1% according to popcon) have https
installed this likely changes nothing in terms of failure. The commit is
adding a friendly hint which package needs to be installed though.
apt-pkg/acquire-worker.cc
methods/server.cc
test/integration/framework
test/integration/test-bug-738785-switch-protocol [new file with mode: 0755]