Browse Source

http-client: No 'setvbuf' for non-file ports.

* guix/http-client.scm (http-fetch): Do not call 'setvbuf' on non-file
ports.
gn-latest-20200428
Ludovic Courtès 6 years ago
parent
commit
409e4ac6e3
  1. 2
      guix/http-client.scm

2
guix/http-client.scm

@ -243,7 +243,7 @@ Raise an '&http-get-error' condition if downloading fails."
(base64-encode
(string->utf8 str))))))
(_ '()))))
(unless buffered?
(unless (or buffered? (not (file-port? port)))
(setvbuf port _IONBF))
(let*-values (((resp data)
;; Try hard to use the API du jour to get an input port.

Loading…
Cancel
Save