GNU bug report logs - #34807
[PATCH 1/2] Add (guix lzlib).

Previous Next

Package: guix-patches;

Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>

Date: Sun, 10 Mar 2019 18:07:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Pierre Neidhardt <mail <at> ambrevar.xyz>, 34807 <at> debbugs.gnu.org
Subject: [bug#34807] [PATCH 1/2] Add (guix lzlib).
Date: Tue, 07 May 2019 01:28:09 +0200
[Message part 1 (text/plain, inline)]
Ludo',

Ludovic Courtès wrote:
> So, depending on the client, ‘guix publish’ should return either 
> a
> narinfo-for-gzip or a narinfo-for-lzip.  To make it possible, 
> new
> clients could send an extra HTTP header, say 
> ‘X-Guix-Compression’, that
> would specify their preferred compression method(s).  ‘guix 
> publish’
> would take that into account when replying.

There's a standard[0] HTTP header for that: ‘Accept-Encoding’.

Unfortunately (and for reasons that I cannot fathom), it doesn't 
use standard MIME types, but pseudostandard strings like ‘gzip’ 
and ‘br’.  We can boldly add ‘lzip’ to that :-)

Similarly, servers can send ‘Content-Encoding’[1] HTTP headers, 
but I don't see a need for it here.

Kind regards,

T G-R

[0]: 
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding
[1]: 
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 6 years and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.