diff --git a/JlSonic/api.jl b/JlSonic/api.jl index 6de1ad0..2b9aa16 100644 --- a/JlSonic/api.jl +++ b/JlSonic/api.jl @@ -519,6 +519,7 @@ function giveconverted(file, bitrate, format) suffix = format mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] : suffix headers["Content-Type"] = mime + wait(iodata) # headers["Content-Length"] = string(length(data)) return Dict(:body => read(iodata), :headers => headers) end