Skip to content

Commit

Permalink
Fix issue 893 (#921)
Browse files Browse the repository at this point in the history
Problem was between keyboard and chair; fixed.

Fixes #893
  • Loading branch information
vyzo authored Sep 24, 2023
1 parent a7fc7b6 commit 063ee29
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/std/net/request.ss
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,8 @@

(def (read/length length)
(let* ((data (make-u8vector length))
(rd (&BufferedReader-read reader data)))
(if (##fx< rd length)
(begin
(u8vector-shrink! data rd)
data)
data)))
(rd (&BufferedReader-read reader data 0 length length)))
data))

(def (read/end)
(let (root [#f])
Expand All @@ -400,10 +396,6 @@
(cond
((##fxzero? rd)
(u8vector-concatenate (cdr root)))
((##fx< rd buflen)
(u8vector-shrink! buf rd)
(set! (cdr tl) [buf])
(u8vector-concatenate (cdr root)))
(else
(let (tl* [buf])
(set! (cdr tl) tl*)
Expand Down

0 comments on commit 063ee29

Please sign in to comment.