summaryrefslogtreecommitdiffstats
path: root/mobile/android/tests/browser/chrome/desktopmode_user_agent.sjs
blob: 88cfb8f7e481ba03c47e8d1ce7ab33799e269ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
function handleRequest(request, response)
{
  // avoid confusing cache behaviors
  response.setHeader("Cache-Control", "no-cache", false);
  response.setHeader("Content-Type", "text/plain", false);
  response.setHeader("Access-Control-Allow-Origin", "*", false);

  // used by mobile/desktop user agent tests
  response.write(request.getHeader("User-Agent"));
}