From 7bbf178d9e222fa4311abe995fec78f18c3a92b8 Mon Sep 17 00:00:00 2001 From: nixo Date: Tue, 21 May 2019 19:08:40 +0200 Subject: [PATCH] was not working --- JlSonic/api.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JlSonic/api.jl b/JlSonic/api.jl index c9e088c..6de1ad0 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 => take!(iodata), :headers => headers) + return Dict(:body => read(iodata), :headers => headers) end function convert(infile; bitrate = 64, format = "oga")