blob: a1c9692c958ca3b77322e827c036f7f72152d60c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function handleRequest(request, response)
{
response.setHeader('Content-Type', 'text/plain', false);
response.setHeader('Cache-Control', 'no-cache', false);
response.setHeader('Content-Type', 'application/x-test', false);
if (request.hasHeader('Referer')) {
response.write('Referer found: ' + request.getHeader('Referer'));
}
else {
response.write('No Referer found');
}
}
|