mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
http-client: No 'setvbuf' for non-file ports.
* guix/http-client.scm (http-fetch): Do not call 'setvbuf' on non-file ports.
This commit is contained in:
parent
247d498aaa
commit
409e4ac6e3
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ (define* (http-fetch uri #:key port (text? #f) (buffered? #t)
|
|||
(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…
Reference in a new issue