mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
9 lines
332 B
JavaScript
9 lines
332 B
JavaScript
function handleRequest(request, response) {
|
|
response.setHeader("Content-Type", "text/plain", false);
|
|
response.setHeader("Cache-Control", "no-cache", false);
|
|
|
|
var referer = request.hasHeader("Referer") ? request.getHeader("Referer")
|
|
: "";
|
|
response.write("Referer: " + referer);
|
|
}
|