[Aptitude-devel] Bug#738785: aptitude: (remote) changelogs is broken after packages.d.o move to https

Julien Cristau jcristau at debian.org
Thu Feb 13 18:52:38 UTC 2014


On Thu, Feb 13, 2014 at 10:27:47 +0100, Raphael Geissert wrote:

> Hi Julien,
> 
> On 13 February 2014 00:26, Julien Cristau <jcristau at debian.org> wrote:
> [...]
> > Seems to be an apt "feature".  After patching it out with
> >
> > diff --git a/methods/server.cc b/methods/server.cc
> > index e12c23c..e07599c 100644
> > --- a/methods/server.cc
> > +++ b/methods/server.cc
> > @@ -294,7 +294,7 @@ ServerMethod::DealWithHeaders(FetchResult &Res)
> >           NextURI = DeQuoteString(Server->Location);
> >           URI tmpURI = NextURI;
> >           // Do not allow a redirection to switch protocol
> > -         if (tmpURI.Access == "http")
> > +         if (1 || tmpURI.Access == "http")
> >              return TRY_AGAIN_OR_REDIRECT;
> >        }
> >        /* else pass through for error message */
> 
> Yes, that's intentional as you should really not switch between
> protocols.

I'm afraid I don't understand where this comes from.  I don't think
redirecting from http to https is all that unreasonable?

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20140213/b565c423/attachment.sig>


More information about the Aptitude-devel mailing list