diff options
Diffstat (limited to 'dom/plugins/test/mochitest/plugin-stream-referer.sjs')
-rw-r--r-- | dom/plugins/test/mochitest/plugin-stream-referer.sjs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/plugins/test/mochitest/plugin-stream-referer.sjs b/dom/plugins/test/mochitest/plugin-stream-referer.sjs new file mode 100644 index 0000000000..a1c9692c95 --- /dev/null +++ b/dom/plugins/test/mochitest/plugin-stream-referer.sjs @@ -0,0 +1,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'); + } +} |