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

Commits (1)
  • Rob Swindell's avatar
    Fix downloaded filenames in v3.19 · 6104817b
    Rob Swindell authored
    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.
    6104817b
......@@ -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';
}
......