gecko-dev/dom/plugins/test/mochitest/plugin-stream-referer.sjs

11 строки
270 B
Plaintext
Исходник Обычный вид История

function handleRequest(request, response)
{
response.setHeader('Content-Type', 'text/plain', false);
if (request.hasHeader('Referer')) {
response.write('Referer found: ' + request.getHeader('Referer'));
}
else {
response.write('No Referer found');
}
}