This commit is contained in:
nixo 2019-05-21 19:10:19 +02:00
parent 7bbf178d9e
commit 89973d7fd1
1 changed files with 1 additions and 0 deletions

View File

@ -519,6 +519,7 @@ function giveconverted(file, bitrate, format)
suffix = format suffix = format
mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] : suffix mime = suffix in keys(Mux.mimetypes) ? Mux.mimetypes[suffix] : suffix
headers["Content-Type"] = mime headers["Content-Type"] = mime
wait(iodata)
# headers["Content-Length"] = string(length(data)) # headers["Content-Length"] = string(length(data))
return Dict(:body => read(iodata), :headers => headers) return Dict(:body => read(iodata), :headers => headers)
end end