Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 6104817b authored by Rob Swindell's avatar Rob Swindell 💬

Fix downloaded filenames in v3.19

Files were being downloaded as undefined.undefined because I didn't emulate
the old 'base' and 'ext' properties - just use a single 'name' property now.
parent fd99cca8
......@@ -49,7 +49,7 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') && request
}
http_reply.header['Content-Type'] = mt;
if (mt === 'application/octet-stream') {
http_reply.header['Content-Disposition'] = 'attachment; filename="' + file.base + '.' + file.ext + '"';
http_reply.header['Content-Disposition'] = 'attachment; filename="' + file.name + '"';
} else {
http_reply.header['Content-Disposition'] = 'inline';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment