re-add content lenght

This commit is contained in:
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] : mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] :
"application/octet-stream" "application/octet-stream"
headers["Content-Type"] = mime headers["Content-Type"] = mime
# headers["Content-Length"] = string(length(data)) data = take!(iodata)
return Dict(:body => take!(iodata), headers["Content-Length"] = string(length(data))
return Dict(:body => data,
:headers => headers, :headers => headers,
:file => join([split(basename(file), '.')[1:end-1], :file => join([split(basename(file), '.')[1:end-1],
".oga"],"")) ".oga"],""))