Skip to content

Commit

Permalink
Fix 1.11 IOBuffer usage
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Sep 8, 2024
1 parent c1df132 commit ff2cf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function c_on_response_headers(stream, header_block, header_array, num_headers,
return Cint(0)
end

writebuf(body, maxsize=length(body) == 0 ? typemax(Int64) : length(body)) = IOBuffer(body; write=true, maxsize)
writebuf(body, maxsize=length(body) == 0 ? typemax(Int64) : length(body)) = Base.GenericIOBuffer{Vector{UInt8}}(body, true, true, true, false, maxsize)

const on_response_header_block_done = Ref{Ptr{Cvoid}}(C_NULL)

Expand Down

0 comments on commit ff2cf22

Please sign in to comment.