summaryrefslogtreecommitdiffstats
path: root/toolkit/components/thumbnails/test/background_red_redirect.sjs
blob: 168772443dbd4610ffe927967ba829c4f2343dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

function handleRequest(aRequest, aResponse) {
  // Set HTTP Status.
  aResponse.setStatusLine(aRequest.httpVersion, 301, "Moved Permanently");

  // Set redirect URI.
  aResponse.setHeader(
    "Location",
    "http://mochi.test:8888/browser/toolkit/components/thumbnails/test/background_red.html"
  );
}