1
0
Fork 0
firefox/netwerk/test/browser/res_hello_h1.sjs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

14 lines
307 B
JavaScript

"use strict";
function handleRequest(request, response) {
const query = new URLSearchParams(request.queryString);
// If the
let type = "text/html";
if (query.has("type")) {
type = query.get("type");
}
response.setHeader("Content-Type", type, false);
response.write(`<h1>hello</h1>`);
}