diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-07-20 16:54:31 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-07-20 16:54:31 +0200 |
commit | ff6638d112d794c9c433731643711932452fd2ff (patch) | |
tree | 483ff44e6ba65eb14a1fcd8482315f14da63f252 /.gitignore | |
parent | 260bc60f83b1955ac7f48b71872d3d2809132ee2 (diff) | |
download | guix-ff6638d112d794c9c433731643711932452fd2ff.tar guix-ff6638d112d794c9c433731643711932452fd2ff.tar.gz |
publish: Handle '/file' URLs, for content-addressed files.
* guix/scripts/publish.scm (render-content-addressed-file): New procedure.
(http-write): Add 'application/octet-stream' case.
(make-request-handler): Add /file/NAME/sha256/HASH URLs.
* tests/publish.scm ("/file/NAME/sha256/HASH")
("/file/NAME/sha256/INVALID-NIX-BASE32-STRING")
("/file/NAME/sha256/INVALID-HASH"): New tests.
* doc/guix.texi (Invoking guix publish): Mention the /file URLs.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions