summaryrefslogtreecommitdiffstats
path: root/toolkit/components/cookiebanners/test/browser/testCookieHeader.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/cookiebanners/test/browser/testCookieHeader.sjs')
-rw-r--r--toolkit/components/cookiebanners/test/browser/testCookieHeader.sjs5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolkit/components/cookiebanners/test/browser/testCookieHeader.sjs b/toolkit/components/cookiebanners/test/browser/testCookieHeader.sjs
new file mode 100644
index 0000000000..2d7cac5e45
--- /dev/null
+++ b/toolkit/components/cookiebanners/test/browser/testCookieHeader.sjs
@@ -0,0 +1,5 @@
+function handleRequest(request, response) {
+ response.setStatusLine(request.httpVersion, 200);
+ // Write the cookie header value to the body for the test to inspect.
+ response.write(request.getHeader("Cookie"));
+}