From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ELGPDoIjVGL6bAAAgWs5BA (envelope-from ) for ; Mon, 11 Apr 2022 14:48:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AOi7C4IjVGIsXgAA9RJhRA (envelope-from ) for ; Mon, 11 Apr 2022 14:48:02 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE3C244F54 for ; Mon, 11 Apr 2022 14:48:01 +0200 (CEST) Received: from localhost ([::1]:50568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndtSa-0008OD-RL for larch@yhetil.org; Mon, 11 Apr 2022 08:48:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndtQh-0006Si-FT for guix-patches@gnu.org; Mon, 11 Apr 2022 08:46:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndtQg-0000HV-HC for guix-patches@gnu.org; Mon, 11 Apr 2022 08:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndtQg-0004QP-CV for guix-patches@gnu.org; Mon, 11 Apr 2022 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54836] [PATCH 1/2] http-client: Fix redirection. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 11 Apr 2022 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54836 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Attila Lendvai Cc: 54836@debbugs.gnu.org Received: via spool by 54836-submit@debbugs.gnu.org id=B54836.164968115316496 (code B ref 54836); Mon, 11 Apr 2022 12:46:02 +0000 Received: (at 54836) by debbugs.gnu.org; 11 Apr 2022 12:45:53 +0000 Received: from localhost ([127.0.0.1]:43030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndtQU-0004EQ-3N for submit@debbugs.gnu.org; Mon, 11 Apr 2022 08:45:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndtQS-000471-KN for 54836@debbugs.gnu.org; Mon, 11 Apr 2022 08:45:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndtQN-0000B2-AR; Mon, 11 Apr 2022 08:45:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=xcslo8tUTkNAjnWaZN9aPkeenDZqx1rBrK/SS8JzIT8=; b=qvbIyjBv4TO3oPG/8CVM vKpqMCrH/Fv6fFHlb7h9YmkPdrPuN8RRGEK8/sQ9UqvIMlwV4Ry+WOoehHWHrXWMkEj5VBQu7kho4 zlsYCPd4PyzQRSN3gPkUszrnB+qQXJ8XgjJIxEkhDXhN99QRLv40fozUpiY+30Xw6Tq5ZfYynIyvb Q7An+TY53BBk095u7LRdFXI2Dzo+VmxkoAegGeJb9OQd0rHigr/Mbw9BR99bNZa7/qw1bRcT6X/2P iIm2ploJvdklNdXCR7UqX+ENr/1g2axxSjJpq4gAykIG4WfGAveqrbnXgvIKpxCbggSZdSqTRqMgj dHZYM9/kBijIUQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:57579 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndtQM-0000q2-Hk; Mon, 11 Apr 2022 08:45:43 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220410133431.30058-1-attila@lendvai.name> <20220410134114.371-1-attila@lendvai.name> Date: Mon, 11 Apr 2022 14:45:41 +0200 In-Reply-To: <20220410134114.371-1-attila@lendvai.name> (Attila Lendvai's message of "Sun, 10 Apr 2022 15:41:13 +0200") Message-ID: <87v8vfiya2.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649681281; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xcslo8tUTkNAjnWaZN9aPkeenDZqx1rBrK/SS8JzIT8=; b=T+tUemT6nNg0zplftySQ0h+mOE3zDIlZ1junSfhsonQZz5ivBrLWwwlYTK3Wspp41VFlKD zpqgBtpk7cTSz7pBh+uDn5agAa/nr14wA39hqUd3ctmY8SAseSnCYpfoIWDwaUaw2DDjF1 0+l87MTTOY6GxIvNZ7vlpQcIL77gBboQh3v2PN97EpXJ3fsdp7h0gqaf7OCCZ0pqXV/5VR m/G5IIjPJOs0aiq9afCpZ58/NweYduJ2i88Qr+kupubP9FbXecfpbzROTiXQUI1nu6L4cB +DlmL+yBvLLuXfRsDnS9pcMu28hcbRKkUel+/eXp2RjNgH9ShT57jvrF+x4Plw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649681281; a=rsa-sha256; cv=none; b=k5dJXpH03a3Hu+Lsr/1NyMyPVsUuIrK9NKzRc01Bgc7U+q7OLA0payy4kPuhecNAoBR5Uc K7bVXQNeoM7ca8C3hhqmBAmQSJue9f1v87hqjP6G/1HJQsEE2whXa/ZDtgsBccx0WNTY4y Hdy9/1V1EDSXxq0fJ/yXBSa+oK+D2bP0kAeuhBnKue647oBjJADqRXOgtgPXuay2AhoORT WVtWQ8Sgb2IBIW7fDTKDT7wPGR698s3VMw0dyHub0Q9JmmxUaFmuZ4YCUaAdlf0hqYXbs1 F9zhsbRGd0r02xuGFibLIMY7gJdTAzajKDjKxWI9kdsEnseCXioY61Fo0PIHCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qvbIyjBv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qvbIyjBv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AE3C244F54 X-Spam-Score: -5.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: X1bwf8biw7t3 Hi, Attila Lendvai 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=3D1 > > 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 =E2=80=98http-get=E2=80= =99 from (web client)? That would let the code deal with all the HTTP idiosyncrasies. Ludo=E2=80=99.