bug552605.sjs 443 B

1234567891011121314
  1. function handleRequest(request, response)
  2. {
  3. var redirectstate = "/image/test/mochitest/bug89419.sjs";
  4. response.setStatusLine("1.1", 302, "Found");
  5. if (getState(redirectstate) == "") {
  6. response.setHeader("Location", "red.png", false);
  7. setState(redirectstate, "red");
  8. } else {
  9. response.setHeader("Location", "blue.png", false);
  10. setState(redirectstate, "");
  11. }
  12. response.setHeader("Cache-Control", "no-cache", false);
  13. }