Compare commits
2 Commits
b02f59c17f
...
f02b2c976e
Author | SHA1 | Date | |
---|---|---|---|
f02b2c976e | |||
566d2ff40e |
@@ -31,7 +31,8 @@
|
|||||||
|
|
||||||
(define (next-cmd)
|
(define (next-cmd)
|
||||||
(define (iter depth)
|
(define (iter depth)
|
||||||
(when (> depth 0)
|
(when (and (> depth 0)
|
||||||
|
(> (pipe-content-length document-buffer) 0))
|
||||||
(let ()
|
(let ()
|
||||||
(displayln (read-line document-buffer))
|
(displayln (read-line document-buffer))
|
||||||
(iter (sub1 depth)))))
|
(iter (sub1 depth)))))
|
||||||
|
2
net.rkt
2
net.rkt
@@ -3,7 +3,7 @@
|
|||||||
(provide get)
|
(provide get)
|
||||||
|
|
||||||
(require openssl)
|
(require openssl)
|
||||||
(require net/url)
|
(require net/url-string)
|
||||||
|
|
||||||
;; sends a request to a gemini server, and returns the status, header,
|
;; sends a request to a gemini server, and returns the status, header,
|
||||||
;; and the input port for the rest of the body.
|
;; and the input port for the rest of the body.
|
||||||
|
Reference in New Issue
Block a user