fixup
This commit is contained in:
parent
0ededc292c
commit
6198e22e34
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue