Browse code
bug(gemini-client): fix GEMINI to use READ-SEQUENCE, not READ-LINE
Ed Langley authored on 08/09/2020 18:32:41
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -38,7 +38,7 @@ |
38 | 38 |
(with-open-stream (conn (ssl-connection (puri:uri-host uri) 1965)) |
39 | 39 |
(request uri conn) |
40 | 40 |
(finish-output conn) |
41 |
- (loop for read = (read-line buffer conn) |
|
41 |
+ (loop for read = (read-sequence buffer conn) |
|
42 | 42 |
while (= read (length buffer)) |
43 | 43 |
do (write-sequence buffer s) |
44 | 44 |
finally (write-sequence buffer conn :end read)) |
... | ... |
@@ -59,4 +59,4 @@ |
59 | 59 |
when (equal read "```") do (setf preformatted (not preformatted)) |
60 | 60 |
when (and (not preformatted) (> (length read) 2) (equal (subseq read 0 2) "=>")) |
61 | 61 |
do (push (parse-link uri read) links)) |
62 |
- (values uri links)))) |
|
63 | 62 |
\ No newline at end of file |
63 |
+ (values uri links)))) |