mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
13 lines
309 B
Plaintext
13 lines
309 B
Plaintext
|
function handleRequest(request, response) {
|
||
|
var body = "initial";
|
||
|
|
||
|
try {
|
||
|
body = request.getHeader("X-Request");
|
||
|
} catch(e) {
|
||
|
body = "request.getHeader() failed! Exception: " + e;
|
||
|
}
|
||
|
|
||
|
response.setHeader("Cache-Control", "max-age=3600");
|
||
|
response.bodyOutputStream.write(body, body.length);
|
||
|
}
|