Fix bug
This commit is contained in:
parent
d4f1c2538d
commit
f659ac07cd
|
@ -62,7 +62,6 @@
|
||||||
(let loop ()
|
(let loop ()
|
||||||
(let ((entry (read-tar-entry)))
|
(let ((entry (read-tar-entry)))
|
||||||
(unless (eof-object? entry)
|
(unless (eof-object? entry)
|
||||||
(read-tar-entry-bytes entry)
|
(write-string (utf8->string (read-tar-entry-bytes entry)))
|
||||||
(loop))))
|
(newline)
|
||||||
(display "Success")
|
(loop))))))
|
||||||
(newline)))
|
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
(define implementations
|
(define implementations
|
||||||
'(("gauche" '("gosh" "-r" "7"))))
|
'(("gauche" '("gosh" "-r" "7"))))
|
||||||
|
|
||||||
|
(define implementation-name first)
|
||||||
|
|
||||||
(define tar-content-type "application/x-tar")
|
(define tar-content-type "application/x-tar")
|
||||||
|
|
||||||
(define (tar-content-type? symbol)
|
(define (tar-content-type? symbol)
|
||||||
|
@ -92,7 +94,8 @@
|
||||||
(send-response
|
(send-response
|
||||||
status: 'ok
|
status: 'ok
|
||||||
body: (bytevector->string
|
body: (bytevector->string
|
||||||
(let ((bytes (string->utf8 "Hello world")))
|
(let ((bytes (string->utf8
|
||||||
|
(string-append "Hello " (implementation-name impl)))))
|
||||||
(bytevector-append
|
(bytevector-append
|
||||||
(bytevector-append
|
(bytevector-append
|
||||||
(make-tar-header-for-regular-file "proc/fd/1" bytes)
|
(make-tar-header-for-regular-file "proc/fd/1" bytes)
|
||||||
|
|
Loading…
Reference in New Issue