From 80e022fefb9689f43da6c6455414fe1cd507def6 Mon Sep 17 00:00:00 2001 From: nixo Date: Tue, 21 May 2019 19:17:30 +0200 Subject: [PATCH] f --- JlSonic/api.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JlSonic/api.jl b/JlSonic/api.jl index 1be741c..c8e778f 100644 --- a/JlSonic/api.jl +++ b/JlSonic/api.jl @@ -520,7 +520,7 @@ function giveconverted(file, bitrate, format) mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] : suffix headers["Content-Type"] = mime # headers["Content-Length"] = string(length(data)) - return Dict(:body => read(iodata), :headers => headers) + return Dict(:body => take!(iodata), :headers => headers) end function convert(infile; bitrate = 64, format = "oga")