summaryrefslogtreecommitdiffstats
path: root/dom/base/test/bug482935.sjs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dom/base/test/bug482935.sjs12
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/base/test/bug482935.sjs b/dom/base/test/bug482935.sjs
new file mode 100644
index 0000000000..b480c40e41
--- /dev/null
+++ b/dom/base/test/bug482935.sjs
@@ -0,0 +1,12 @@
+function handleRequest(request, response) {
+ var body = "initial";
+
+ try {
+ body = request.getHeader("X-Request");
+ } catch (e) {
+ body = "request.getHeader() failed! Exception: " + e;
+ }
+
+ response.setHeader("Cache-Control", "max-age=3600");
+ response.bodyOutputStream.write(body, body.length);
+}