publish: Restore gzip compression in cache-less mode.
authorLudovic Courtès <ludo@gnu.org>
Mon, 22 Jan 2018 09:46:34 +0000 (10:46 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 22 Jan 2018 10:15:50 +0000 (11:15 +0100)
commit33988f9b5876e4b44cabe1997a91eb604931c1ca
tree5980155f32e47ef95ec5268f7c496410a43c50aa
parent3b6502e25d421ddc6dec3ed828ef23f311e279a6
publish: Restore gzip compression in cache-less mode.

Fixes <https://bugs.gnu.org/30184>.
Regression introduced in 297e04d66010ada31a40f40143d81bf6b62affcc.
Reported by Christopher Baines <mail@cbaines.net>.

* guix/scripts/publish.scm (nar-response-port): Add 'compression'
parameter and honor it.
(http-write): Get 'x-nar-compression' from the initial RESPONSE.
guix/scripts/publish.scm
tests/publish.scm