From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 30 14:44:05 2017 Received: (at submit) by debbugs.gnu.org; 30 Mar 2017 18:44:05 +0000 Received: from localhost ([127.0.0.1]:53190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctf3F-0002Fv-40 for submit@debbugs.gnu.org; Thu, 30 Mar 2017 14:44:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctf3D-0002F1-9m for submit@debbugs.gnu.org; Thu, 30 Mar 2017 14:44:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctf37-000687-E9 for submit@debbugs.gnu.org; Thu, 30 Mar 2017 14:43:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctf37-000683-B5 for submit@debbugs.gnu.org; Thu, 30 Mar 2017 14:43:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctf36-0000Jk-6P for guix-patches@gnu.org; Thu, 30 Mar 2017 14:43:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctf32-00066j-Ro for guix-patches@gnu.org; Thu, 30 Mar 2017 14:43:56 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:58782) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctf32-00066S-Lk for guix-patches@gnu.org; Thu, 30 Mar 2017 14:43:52 -0400 Received: from mfilter13-d.gandi.net (mfilter13-d.gandi.net [217.70.178.141]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id E4AF8172095 for ; Thu, 30 Mar 2017 20:43:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter13-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter13-d.gandi.net (mfilter13-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id EHpWkvHdAL2t for ; Thu, 30 Mar 2017 20:43:48 +0200 (CEST) X-Originating-IP: 81.241.166.83 Received: from v5.tobias.gr (83.166-241-81.adsl-dyn.isp.belgacom.be [81.241.166.83]) (Authenticated sender: me@tobias.gr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 4E75017209A for ; Thu, 30 Mar 2017 20:43:47 +0200 (CEST) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: [PATCH] =?UTF-8?q?substitute:=20Send=20=E2=80=98User-Agent?= =?UTF-8?q?=E2=80=99=20header.?= Date: Thu, 30 Mar 2017 20:44:39 +0200 Message-Id: <20170330184439.8896-1-me@tobias.gr> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) * guix/scripts/substitute.scm (narinfo-request): Pass ‘User-Agent’ #:headers to ‘build-request’. --- Guix, This makes the User-Agent sent to substitute servers consistent. Currently, ‘http-fetch’ (used to download .nars) sets it to ‘GNU Guile’, while http-multiple-get (used to download .narinfos) leaves it empty. (This brings the number of scattered '"GNU Guile"' user-agent settings in Guix to 5, but moving it to %guix-default-http-user-agent does not strike me as a meaningful improvement.) Kind regards, T G-R guix/scripts/substitute.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm index faeb01912..d3bccf4dd 100755 --- a/guix/scripts/substitute.scm +++ b/guix/scripts/substitute.scm @@ -520,8 +520,9 @@ indicates that PATH is unavailable at CACHE-URL." (define (narinfo-request cache-url path) "Return an HTTP request for the narinfo of PATH at CACHE-URL." (let ((url (string-append cache-url "/" (store-path-hash-part path) - ".narinfo"))) - (build-request (string->uri url) #:method 'GET))) + ".narinfo")) + (headers '((User-Agent . "GNU Guile")))) + (build-request (string->uri url) #:method 'GET #:headers headers))) (define* (http-multiple-get base-uri proc seed requests #:key port (verify-certificate? #t)) -- 2.37.4 From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 31 04:12:48 2017 Received: (at 26314) by debbugs.gnu.org; 31 Mar 2017 08:12:48 +0000 Received: from localhost ([127.0.0.1]:53536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctrfs-0003ZO-Lj for submit@debbugs.gnu.org; Fri, 31 Mar 2017 04:12:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctrfq-0003ZB-J0 for 26314@debbugs.gnu.org; Fri, 31 Mar 2017 04:12:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctrfi-0005qR-Bt for 26314@debbugs.gnu.org; Fri, 31 Mar 2017 04:12:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctrfi-0005qN-9Q; Fri, 31 Mar 2017 04:12:38 -0400 Received: from [193.50.110.231] (port=37334 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ctrfh-0002eI-OI; Fri, 31 Mar 2017 04:12:38 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Tobias Geerinckx-Rice Subject: Re: bug#26314: [PATCH] substitute: Send =?utf-8?B?4oCYVXNlci1B?= =?utf-8?B?Z2VudOKAmQ==?= header. References: <20170330184439.8896-1-me@tobias.gr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 Germinal an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Fri, 31 Mar 2017 10:12:35 +0200 In-Reply-To: <20170330184439.8896-1-me@tobias.gr> (Tobias Geerinckx-Rice's message of "Thu, 30 Mar 2017 20:44:39 +0200") Message-ID: <8737dt7tl8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26314 Cc: 26314@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Heya! Tobias Geerinckx-Rice skribis: > * guix/scripts/substitute.scm (narinfo-request): Pass =E2=80=98User-Agent= =E2=80=99 #:headers > to =E2=80=98build-request=E2=80=99. > --- > > Guix, > > This makes the User-Agent sent to substitute servers consistent. > > Currently, =E2=80=98http-fetch=E2=80=99 (used to download .nars) sets it = to =E2=80=98GNU Guile=E2=80=99, > while http-multiple-get (used to download .narinfos) leaves it empty. Sounds good to me. Did the lack of =E2=80=98User-Agent=E2=80=99 cause you any problems? > (This brings the number of scattered '"GNU Guile"' user-agent settings > in Guix to 5, but moving it to %guix-default-http-user-agent does not > strike me as a meaningful improvement.) Agreed. :-) Go for it! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 31 09:41:59 2017 Received: (at 26314-done) by debbugs.gnu.org; 31 Mar 2017 13:42:00 +0000 Received: from localhost ([127.0.0.1]:53702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctwoR-0004ru-Ob for submit@debbugs.gnu.org; Fri, 31 Mar 2017 09:41:59 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:55502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctwoP-0004rl-DW for 26314-done@debbugs.gnu.org; Fri, 31 Mar 2017 09:41:58 -0400 Received: from mfilter10-d.gandi.net (mfilter10-d.gandi.net [217.70.178.139]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 82D9E41C09C; Fri, 31 Mar 2017 15:41:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter10-d.gandi.net Received: from relay5-d.mail.gandi.net ([IPv6:::ffff:217.70.183.197]) by mfilter10-d.gandi.net (mfilter10-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 5Zsz63_vVw_d; Fri, 31 Mar 2017 15:41:54 +0200 (CEST) X-Originating-IP: 91.177.19.223 Received: from [192.168.1.24] (unknown [91.177.19.223]) (Authenticated sender: me@tobias.gr) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B765441C08A; Fri, 31 Mar 2017 15:41:53 +0200 (CEST) Subject: =?UTF-8?Q?Re:_bug#26314:_[PATCH]_substitute:_Send_=e2=80=98User-Age?= =?UTF-8?Q?nt=e2=80=99_header.?= To: ludo@gnu.org References: <20170330184439.8896-1-me@tobias.gr> <8737dt7tl8.fsf@gnu.org> From: Tobias Geerinckx-Rice Message-ID: <879e2fe2-455b-ad0d-e075-e3ca369d168b@tobias.gr> Date: Fri, 31 Mar 2017 15:42:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <8737dt7tl8.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tMPTRiRRA2EMPMegG68Fre02996DcrAMs" X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 26314-done Cc: 26314-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tMPTRiRRA2EMPMegG68Fre02996DcrAMs Content-Type: multipart/mixed; boundary="19HdN6GDTRa2gmHNtLEGQefX6OkP74RPd"; protected-headers="v1" From: Tobias Geerinckx-Rice To: ludo@gnu.org Cc: 26314-done@debbugs.gnu.org Message-ID: <879e2fe2-455b-ad0d-e075-e3ca369d168b@tobias.gr> Subject: =?UTF-8?Q?Re:_bug#26314:_[PATCH]_substitute:_Send_=e2=80=98User-Age?= =?UTF-8?Q?nt=e2=80=99_header.?= References: <20170330184439.8896-1-me@tobias.gr> <8737dt7tl8.fsf@gnu.org> In-Reply-To: <8737dt7tl8.fsf@gnu.org> --19HdN6GDTRa2gmHNtLEGQefX6OkP74RPd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludo', On 31/03/17 10:12, Ludovic Court=C3=A8s wrote: > Did the lack of =E2=80=98User-Agent=E2=80=99 cause you any problems? I recently got stuck behind an alt-right proxy that didn't seem to like it, and had to hack a tunnel through it. I hope such things are rare. > Go for it! Pushed as f264e838c0f8b63e93cd7b8a9d5d8e2208d82467. Thanks! T G-R --19HdN6GDTRa2gmHNtLEGQefX6OkP74RPd-- --tMPTRiRRA2EMPMegG68Fre02996DcrAMs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQFBBAEBCgArFiEEeqzfDJ8DWw5d4xcqkczbm0hUG5kFAljeXN4NHG1lQHRvYmlh cy5ncgAKCRCRzNubSFQbmSP7CACJRsY9twNbD+HBA0e1b18wm9NA25Yv94hPCRJU U8wHN4HgINE6PuN169oPy538yycVVvmO5YRsQAtyFts5QPa1QCCK/g3eCMVIoxFx 7u1o4D0GiiZfFL8lN4fQ0Wti9zeL6HtPZlkNOJFh2yckzfTaU92JO3/CXwVNIggA wCgOiHmnn945TSzqdr/6h7CACRV8kkKJMlABBeXNgEEYwnmkCE4g4UqMxhmE+5HC mQP0GwDeFW784oi0ZiBEO36rmymSPqpNMyMxVXxKrJfopprCq8Dci/3wki1dgIqF copzdaqQiDs6+wIwKwRCZFmFjDLwHzPvL7k/8UpgKLO7ufXS =EgG9 -----END PGP SIGNATURE----- --tMPTRiRRA2EMPMegG68Fre02996DcrAMs-- From unknown Thu Jun 19 14:12:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 29 Apr 2017 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator