gecko-dev/dom/browser-element/mochitest/file_download_bin.sjs

4 строки
143 B
JavaScript

function handleRequest(request, response) {
response.setHeader("Content-Type", "application/octet-stream", false);
response.write("BIN");
}