Fixing empty request data
This commit is contained in:
parent
97827acba6
commit
33717eebaa
|
@ -25,9 +25,13 @@
|
|||
bs))
|
||||
|
||||
(define (->bytes str)
|
||||
(if (string? str)
|
||||
(string->bytes/utf-8 str)
|
||||
str))
|
||||
(cond
|
||||
[(string? str)
|
||||
(string->bytes/utf-8 str)]
|
||||
[(not str)
|
||||
#""]
|
||||
[else
|
||||
str]))
|
||||
|
||||
(define (read-bytes-line/not-eof ip kind)
|
||||
(define bs (read-bytes-line ip kind))
|
||||
|
|
Loading…
Reference in New Issue
Block a user