summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_explicit_user_agent.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/test/file_explicit_user_agent.sjs')
-rw-r--r--dom/base/test/file_explicit_user_agent.sjs8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/base/test/file_explicit_user_agent.sjs b/dom/base/test/file_explicit_user_agent.sjs
new file mode 100644
index 000000000..7a5a595b9
--- /dev/null
+++ b/dom/base/test/file_explicit_user_agent.sjs
@@ -0,0 +1,8 @@
+function handleRequest(request, response)
+{
+ if (request.hasHeader("User-Agent")) {
+ response.setHeader("Result-User-Agent",
+ request.getHeader("User-Agent"));
+ }
+ response.write("");
+}