Skip to content

Commit 7074172

Browse files
authored
Fix lost response body data. Fixes #1166 (#1170)
1 parent efd74ea commit 7074172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IOExtras.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function readuntil(buf::IOBuffer,
119119
if l == 0
120120
return nobytes
121121
end
122-
bytes = view(buf.data, buf.ptr:buf.ptr + l - 1)
122+
bytes = buf.data[buf.ptr:buf.ptr + l - 1]
123123
buf.ptr += l
124124
return bytes
125125
end

0 commit comments

Comments
 (0)