master
nixo 2019-05-21 19:25:10 +02:00
parent 0ededc292c
commit 6198e22e34
1 changed files with 2 additions and 2 deletions

View File

@ -523,7 +523,7 @@ function giveconverted(file, bitrate, format)
# headers["Content-Length"] = string(length(data))
return Dict(:body => take!(iodata),
:headers => headers,
:file => join([split(filename(file), '.')[1:end-1],
:file => join([split(basename(file), '.')[1:end-1],
".oga"],""))
end
@ -571,7 +571,7 @@ function sendfile(path; suffix = nothing)
headers["Content-Type"] = mime
headers["Content-Length"] = string(filesize(path))
return Dict(:body => read(path),
:file => filename(path),
:file => basename(path),
:headers => headers)
end