publish: Preserve the request connection header.
authorMathieu Othacehe <othacehe@gnu.org>
Fri, 21 May 2021 08:19:20 +0000 (10:19 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Tue, 1 Jun 2021 07:10:32 +0000 (09:10 +0200)
commit2acc114a963e91852ce517e763272528e4ba99a0
tree87b594aafd807b793d90de7d29af96b9c4e886ca
parent4f2fa2f9802d268284aa12accf5705e57dd73d5a
publish: Preserve the request connection header.

The Guile web server is reading the response connection header to decide
whether to close the connection. However, as the request connection header is
not forwarded to the response, this mechanism cannot work.

* guix/scripts/publish.scm (add-extra-headers): New procedure.
(make-request-handler): Use it to forward the request connection header to the
response.
guix/scripts/publish.scm