This commit is contained in:
Lassi Kortela 2021-09-19 14:41:47 +03:00
parent d4f1c2538d
commit f659ac07cd
2 changed files with 7 additions and 5 deletions

View File

@ -62,7 +62,6 @@
(let loop ()
(let ((entry (read-tar-entry)))
(unless (eof-object? entry)
(read-tar-entry-bytes entry)
(loop))))
(display "Success")
(newline)))
(write-string (utf8->string (read-tar-entry-bytes entry)))
(newline)
(loop))))))

View File

@ -11,6 +11,8 @@
(define implementations
'(("gauche" '("gosh" "-r" "7"))))
(define implementation-name first)
(define tar-content-type "application/x-tar")
(define (tar-content-type? symbol)
@ -92,7 +94,8 @@
(send-response
status: 'ok
body: (bytevector->string
(let ((bytes (string->utf8 "Hello world")))
(let ((bytes (string->utf8
(string-append "Hello " (implementation-name impl)))))
(bytevector-append
(bytevector-append
(make-tar-header-for-regular-file "proc/fd/1" bytes)