summaryrefslogtreecommitdiff
path: root/http-client.scm
diff options
context:
space:
mode:
Diffstat (limited to 'http-client.scm')
-rw-r--r--http-client.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/http-client.scm b/http-client.scm
index 58d045d..a0cf59f 100644
--- a/http-client.scm
+++ b/http-client.scm
@@ -46,7 +46,7 @@
server-connector default-server-connector
prepare-request default-prepare-request)
-(import scheme
+(import scheme (scheme base)
srfi-1 srfi-13 srfi-18 srfi-69
(chicken base) (chicken string) (chicken time)
(chicken sort) (chicken io) (chicken file posix) (chicken format)
@@ -295,16 +295,16 @@
(or (= pos len) (char-ready? port)))
(lambda () ; close
(close-input-port port))
- (lambda () ; peek-char
+ peek-char: (lambda ()
(if (= pos len)
#!eof
(peek-char port)))
- (lambda (p bytes buf off) ; read-string!
+ read-bytevector: (lambda (p bytes buf off)
(let* ((bytes (min bytes (- len pos)))
- (bytes-read (read-string! bytes buf port off)))
+ (bytes-read (read-bytevector! buf port off (+ off bytes))))
(set! pos (+ pos bytes-read))
bytes-read))
- (lambda (p limit) ; read-line
+ read-line: (lambda (p limit)
(if (= pos len)
#!eof
(let* ((bytes-left (- len pos))
@@ -772,7 +772,7 @@
(let ((size (##sys#slot port 11))
(string (##sys#slot port 12)))
(assert (integer? size)) ; Check our assumptions; this is pretty unsafe code
- (assert (string? string))
+ (assert (bytevector? string))
size)))
(define (calculate-chunk-size entries)