B2G/gecko/content/media/test/redirect.sjs
// All subsequent requests return a redirect to a different-origin resource.
All subsequent requests return a redirect to a different-origin resource.
All subsequent requests return a redirect to a different - origin resource .
function handleRequest(request, response)
{
  var domain = parseQuery(request, "domain");
  var file = parseQuery(request, "file");
  var allowed = parseQuery(request, "allowed");
  response.setStatusLine(request.httpVersion, 303, "See Other");
  response.setHeader("Location", "http://" + domain + "/tests/content/media/test/" + (allowed ? "allowed.sjs?" : "") + file);
  response.setHeader("Content-Type", "text/html");
}
function handleRequest ( request , response ) { var domain = parseQuery ( request , "domain" ) ; var file = parseQuery ( request , "file" ) ; var allowed = parseQuery ( request , "allowed" ) ; response . setStatusLine ( request . httpVersion , 303 , "See Other" ) ; response . setHeader ( "Location" , "http://" + domain + "/tests/content/media/test/" + ( allowed ? "allowed.sjs?" : "" ) + file ) ; response . setHeader ( "Content-Type" , "text/html" ) ; }
All subsequent requests return a redirect to a different-origin resource.
All subsequent requests return a redirect to a different - origin resource .