[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#738785: aptitude: (remote) changelogs is broken after packages.d.o move to https



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

> Hi Julien,
> 
> On 13 February 2014 00:26, Julien Cristau <jcristau@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

Attachment: signature.asc
Description: Digital signature


Reply to: