Source code

Revision control

Other Tools

1
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
2
/* vim: set sts=2 sw=2 et tw=80 ft=javascript: */
3
"use strict";
4
5
function handleRequest(request, response) {
6
response.setHeader("Content-Type", "text/plain; charset=UTF-8", false);
7
8
if (request.hasHeader("pragma") && request.hasHeader("cache-control")) {
9
response.write(`${request.getHeader("pragma")}:${request.getHeader("cache-control")}`);
10
}
11
}