Skip to content

Commit

Permalink
Fix lost response body data. Fixes #1166 (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj authored Apr 20, 2024
1 parent efd74ea commit 7074172
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 7074172

Please sign in to comment.