Commit c5dc7863 authored by Lorenzo "Palinuro" Faletra's avatar Lorenzo "Palinuro" Faletra Committed by Lorenzo "Palinuro" Faletra

Import Debian version 1.8.0+parrot1

apt (1.8.0+parrot1) testing; urgency=medium

  * Allow https to http downgrade for https mirrordirectors with http mirrors.
parent 93fac3cd
apt (1.8.0+parrot1) testing; urgency=medium
* Allow https to http downgrade for https mirrordirectors with http mirrors.
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Wed, 03 Apr 2019 03:06:03 +0200
apt (1.8.0) unstable; urgency=medium
[ David Kalnischkies ]
......
......@@ -373,6 +373,9 @@ BaseHttpMethod::DealWithHeaders(FetchResult &Res, RequestState &Req)
// as well as http to https
else if ((Uri.Access == "http" || Uri.Access == "https+http") && tmpURI.Access == "https")
return TRY_AGAIN_OR_REDIRECT;
// allow https to http redirects (for https mirrordirectors with http mirrors)
else if ((Uri.Access == "https" || Uri.Access == "https+http") && tmpURI.Access == "http")
return TRY_AGAIN_OR_REDIRECT;
else
{
auto const tmpplus = tmpURI.Access.find('+');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment