From ff89ac39156d1b19a9f17846dccbd6fb32c8b9cc Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Fri, 19 Apr 2024 23:26:20 -0600 Subject: [PATCH] Fix lost response body data. Fixes #1166 --- src/IOExtras.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IOExtras.jl b/src/IOExtras.jl index 545ef70f..97ea3594 100644 --- a/src/IOExtras.jl +++ b/src/IOExtras.jl @@ -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