re-add content lenght

master
nixo 2019-05-21 19:27:58 +02:00
parent 6198e22e34
commit 881b07fb15
1 changed files with 3 additions and 2 deletions

View File

@ -520,8 +520,9 @@ function giveconverted(file, bitrate, format)
mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] :
"application/octet-stream"
headers["Content-Type"] = mime
# headers["Content-Length"] = string(length(data))
return Dict(:body => take!(iodata),
data = take!(iodata)
headers["Content-Length"] = string(length(data))
return Dict(:body => data,
:headers => headers,
:file => join([split(basename(file), '.')[1:end-1],
".oga"],""))