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] :
|
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"],""))
|
||||||
|
|
Loading…
Reference in New Issue