if (body.length != rangeBody.length) { response.setStatusLine(metadata.httpVersion, 206, "Partial Content"); response.setHeader("Content-Range", from + "-" + to + "/" + rangeBody.length); } 
 response.setStatusLine(metadata.httpVersion, 206, "Partial Content"); response.setHeader("Content-Range", from + "-" + to + "/" + rangeBody.length); 
function rangeHandler(metadata, response) {  response.setHeader("Content-Type", "text/html", false);  if (metadata.hasHeader("X-Need-Auth")) {    if (!handleAuth(metadata, response)) {      body = "auth failed";      response.bodyOutputStream.write(body, body.length);      return;    }  }  if (metadata.hasHeader("X-Want-404")) {    response.setStatusLine(metadata.httpVersion, 404, "Not Found");    body = rangeBody;    response.bodyOutputStream.write(body, body.length);    return;  }  var body = rangeBody;  if (metadata.hasHeader("Range")) {    // Syntax: bytes=[from]-[to] (we don't support multiple ranges)    var matches = metadata.getHeader("Range").match(/^\s*bytes=(\d+)?-(\d+)?\s*$/);    var from = (matches[1] === undefined) ? 0 : matches[1];    var to = (matches[2] === undefined) ? rangeBody.length - 1 : matches[2];    if (from >= rangeBody.length) {      response.setStatusLine(metadata.httpVersion, 416, "Start pos too high");      response.setHeader("Content-Range", "*/" + rangeBody.length);      return;    }    body = body.substring(from, to + 1);    if (body.length != rangeBody.length) {      response.setStatusLine(metadata.httpVersion, 206, "Partial Content");      response.setHeader("Content-Range", from + "-" + to + "/" + rangeBody.length);    }  }  response.bodyOutputStream.write(body, body.length);}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/a89e8709953493b59975e6727d67f027f1078f94/test_resumable_channel.js/clean/netwerk/test/unit/test_resumable_channel.js