diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-23 04:29:08 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-23 04:29:08 +0000 |
commit | 0ce6c14b1b17b78e45c0592bd3e404adbc26ed3e (patch) | |
tree | c8c48fae9c5a35b94ab93af4fc24cf1d2fb4bdf1 /dom/security/test/general/http_download_server.sjs | |
parent | Adding upstream version 125.0.1. (diff) | |
download | firefox-0ce6c14b1b17b78e45c0592bd3e404adbc26ed3e.tar.xz firefox-0ce6c14b1b17b78e45c0592bd3e404adbc26ed3e.zip |
Adding upstream version 125.0.2.upstream/125.0.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/security/test/general/http_download_server.sjs')
-rw-r--r-- | dom/security/test/general/http_download_server.sjs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/dom/security/test/general/http_download_server.sjs b/dom/security/test/general/http_download_server.sjs deleted file mode 100644 index e659df2f40..0000000000 --- a/dom/security/test/general/http_download_server.sjs +++ /dev/null @@ -1,20 +0,0 @@ -// force the Browser to Show a Download Prompt - -function handleRequest(request, response) { - let type = "image/png"; - let filename = "hello.png"; - request.queryString.split("&").forEach(val => { - var [key, value] = val.split("="); - if (key == "type") { - type = value; - } - if (key == "name") { - filename = value; - } - }); - - response.setHeader("Cache-Control", "no-cache", false); - response.setHeader("Content-Disposition", `attachment; filename=${filename}`); - response.setHeader("Content-Type", type); - response.write("🙈🙊🐵🙊"); -} |