summaryrefslogtreecommitdiffstats
path: root/caps/tests/mochitest/file_bug1367586-redirect.sjs
blob: 12a980155f9b5265bb6b75bed61e2526009560b9 (plain)
1
2
3
4
5
6
7
8
function handleRequest(aRequest, aResponse) {
  aResponse.setStatusLine(aRequest.httpVersion, 302, "Moved");
  aResponse.setHeader(
    "Location",
    "http://mochi.test:8888/tests/caps/tests/mochitest/file_bug1367586-target.html"
  );
  aResponse.write("To be redirected to target");
}