diff --git a/src/StreamRequest.jl b/src/StreamRequest.jl index 2013ee502..d0fc31c80 100644 --- a/src/StreamRequest.jl +++ b/src/StreamRequest.jl @@ -54,6 +54,7 @@ function request(::Type{StreamLayer}, io::IO, request::Request, body; if iofunction == nothing @async writebody(http, request, body) + yield() startread(http) readbody(http, response, response_stream) else