Skip to content

Commit

Permalink
Fix lost response body data. Fixes #1166
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Apr 20, 2024
1 parent efd74ea commit ff89ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IOExtras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function readuntil(buf::IOBuffer,
if l == 0
return nobytes
end
bytes = view(buf.data, buf.ptr:buf.ptr + l - 1)
bytes = buf.data[buf.ptr:buf.ptr + l - 1]
buf.ptr += l
return bytes
end
Expand Down

0 comments on commit ff89ac3

Please sign in to comment.