svn: r3908
This commit is contained in:
John Clements 2006-07-31 14:48:39 +00:00
parent 105c6830be
commit ecd96a68ae

View File

@ -171,14 +171,11 @@
(string-append field header))))
;; NB: I stopped adding "bytes" versions of functions here; anybody want to finish?
;; JBC, 2006-07-31
(define (append-headers a b)
(if (bytes? a)
(let ([alen (bytes-length a)])
(if (> alen 1)
(string-append (substring a 0 (- alen 2)) b)
(bytes-append (subbytes a 0 (- alen 2)) b)
(error 'append-headers "first argument is not a header: ~a" a)))
;; otherwise, a & b should be strings:
(let ([alen (string-length a)])