summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_explicit_user_agent.sjs
blob: 7a5a595b96ea7712eef1d9c35df77d329fddb5b5 (plain)
1
2
3
4
5
6
7
8
function handleRequest(request, response)
{
  if (request.hasHeader("User-Agent")) {
    response.setHeader("Result-User-Agent",
                       request.getHeader("User-Agent"));
  }
  response.write("");
}