re-add content lenght
This commit is contained in:
parent
6198e22e34
commit
881b07fb15
|
@ -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"],""))
|
||||
|
|
Loading…
Reference in New Issue