substitute: Avoid infinite loop when updating the substitute list.
commit075d99f19599b2903490942d8c3717cdd5b5d31e
authorAndy Patterson <ajpatter@uwaterloo.ca>
Mon, 6 Jul 2015 22:52:16 +0000 (7 00:52 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 6 Jul 2015 23:04:02 +0000 (7 01:04 +0200)
tree2d65b981e7576ea861047c0e7cf65555f3045a0a
parent399f9acee3be2825e93cdb0832f5b9e3e43fa283
substitute: Avoid infinite loop when updating the substitute list.

Reported
at <http://lists.gnu.org/archive/html/guix-devel/2015-07/msg00119.html>.

* guix/scripts/substitute.scm (http-multiple-get): When RESP has "Connection:
  close", consume HEAD anyway; always call PROC to read from BODY.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
guix/scripts/substitute.scm