Subject: [bug#54836] [PATCH 1/2] http-client: Fix redirection.

From: Ludovic Courtès <[email-masked]>
Date: Mon, 11 Apr 2022 14:45:41 +0200

Hi,

Attila Lendvai <[email-masked]> skribis:

> This is needed when dealing with golang packages, as per:
> https://golang.org/ref/mod#vcs-find
>
> A page may return 404, but at the same time also contain the sought after
> `go-import` meta tag.  An example for such a project/page is:
> https://www.gonum.org/v1/gonum?go-get=1
>
> It's not enough to just handle the thrown exception, because we need to be
> able to get hold of the fetched content, too.

Would it make sense, then, to use the lower-level ‘http-get’ from (web
client)?  That would let the code deal with all the HTTP idiosyncrasies.

Ludo’.