bytes
svn: r13392
This commit is contained in:
parent
04625886d2
commit
2e3a1e91bd
|
@ -111,7 +111,7 @@
|
||||||
; read-file : str -> str
|
; read-file : str -> str
|
||||||
(define (read-file path)
|
(define (read-file path)
|
||||||
(call-with-input-file path
|
(call-with-input-file path
|
||||||
(lambda (in) (read-string (file-size path) in))))
|
(lambda (in) (read-bytes (file-size path) in))))
|
||||||
|
|
||||||
(provide/contract
|
(provide/contract
|
||||||
[file-response ((natural-number/c bytes? path-string?) () #:rest (listof header?) . ->* . response/c)]
|
[file-response ((natural-number/c bytes? path-string?) () #:rest (listof header?) . ->* . response/c)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user