publish: Remove "Guix-Nar-Compression" header from responses.
authorLudovic Courtès <ludo@gnu.org>
Tue, 9 Jan 2018 21:38:47 +0000 (22:38 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 9 Jan 2018 22:39:02 +0000 (23:39 +0100)
commit297e04d66010ada31a40f40143d81bf6b62affcc
tree1562b66bf7063915a9bd6fb6a24779f34e830448
parentb0de7fdba678c1b0ec27b9c8e37c81fb5d49a124
publish: Remove "Guix-Nar-Compression" header from responses.

This was harmless but non-compliant and unnecessary.

* guix/scripts/publish.scm <top level>: Rename "Guix-Nar-Compression" to
"X-Nar-Compression" as should have always been.
(render-nar, nar-response-port): Adjust accordingly.
(strip-headers): New procedure.
(sans-content-length, with-content-length): Use it.
guix/scripts/publish.scm