summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-01-05 00:15:51 +0100
committerLudovic Courtès <ludo@gnu.org>2018-01-07 23:47:22 +0100
commit152b7beeacb72fe96fd5d3c0fd8b321e247c2c6c (patch)
tree0533c1fb24a8c72206ea27f873b8cebb73abd468 /doc
parent06e3a5181efa0ea83bb6608d3cbfba5caa56d7e9 (diff)
downloadguix-152b7beeacb72fe96fd5d3c0fd8b321e247c2c6c.tar.gz
publish: Use 'x-raw-file' internal response header.
This adjusts the workaround for <http://bugs.gnu.org/21093> so that it's
not limited to a single content-type.

* guix/scripts/publish.scm (render-nar/cached): Add the 'x-raw-file'
header on the response.
(render-content-addressed-file): Likewise.
(with-content-length): Remove the 'x-raw-file' header.
(http-write): Instead of dispatching on 'application/octet-stream',
check whether 'x-raw-file' is set to determine whether to spawn a
thread.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions