From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNvKV-0000lh-RW for guix-patches@gnu.org; Tue, 07 May 2019 04:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNvKV-0008H9-0G for guix-patches@gnu.org; Tue, 07 May 2019 04:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNvKU-0008H4-Ta for guix-patches@gnu.org; Tue, 07 May 2019 04:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hNvKU-0001ZK-JM for guix-patches@gnu.org; Tue, 07 May 2019 04:20:02 -0400 Subject: [bug#34807] [PATCH 1/2] Add (guix lzlib). Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190310180209.11578-1-mail@ambrevar.xyz> <8736ne3855.fsf@gnu.org> <87pnp2f7gr.fsf@ambrevar.xyz> <8736lxdxn6.fsf@ambrevar.xyz> <87lfzm7fdz.fsf@gnu.org> <878svm5xic.fsf@ambrevar.xyz> <87ef5e0vvv.fsf@gnu.org> <87o94h527a.fsf@ambrevar.xyz> <87a7fzffip.fsf@gnu.org> <87v9ynf9iu.fsf@nckx> Date: Tue, 07 May 2019 10:19:19 +0200 In-Reply-To: <87v9ynf9iu.fsf@nckx> (Tobias Geerinckx-Rice's message of "Tue, 07 May 2019 01:28:09 +0200") Message-ID: <87sgtq8yns.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Tobias Geerinckx-Rice Cc: Pierre Neidhardt , 34807@debbugs.gnu.org Tobias Geerinckx-Rice skribis: > Ludovic Court=C3=A8s wrote: >> So, depending on the client, =E2=80=98guix publish=E2=80=99 should retur= n either a >> narinfo-for-gzip or a narinfo-for-lzip. To make it possible, new >> clients could send an extra HTTP header, say =E2=80=98X-Guix-Compression= =E2=80=99, >> that >> would specify their preferred compression method(s). =E2=80=98guix publ= ish=E2=80=99 >> would take that into account when replying. > > There's a standard[0] HTTP header for that: =E2=80=98Accept-Encoding=E2= =80=99. > > Unfortunately (and for reasons that I cannot fathom), it doesn't use > standard MIME types, but pseudostandard strings like =E2=80=98gzip=E2=80= =99 and =E2=80=98br=E2=80=99. > We can boldly add =E2=80=98lzip=E2=80=99 to that :-) Well, that=E2=80=99s why I thought about using a new header. :-) Ludo=E2=80=99.