mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
9 lines
337 B
JavaScript
9 lines
337 B
JavaScript
function handleRequest(request, response) {
|
|
response.setHeader("Content-Type", "text/plain", false);
|
|
response.setHeader("Cache-Control", "no-cache", false);
|
|
|
|
var value = request.hasHeader("SomeHeader") ? request.getHeader("SomeHeader")
|
|
: "";
|
|
response.write("SomeHeader: " + value);
|
|
}
|