rem: while (line.value != "") { 
add: var req_head = {}; while (true) { 
context:   parseInput: function(input)  {    // We read the input line by line. The first line tells us the requested    // path.    var is = Components.classes["@mozilla.org/intl/converter-input-stream;1"]                       .createInstance(Components.interfaces.nsIConverterInputStream);    is.init(input, "ISO-8859-1", 1024, 0xFFFD);    var lis =      is.QueryInterface(Components.interfaces.nsIUnicharLineInputStream);    var line = {};    var cont = lis.readLine(line);    var request = line.value.split(/ +/);    if (request[0] != "GET" && request[0] != "POST")      return 400;    // This server doesn't support HTTP 0.9    if (request[2] != "HTTP/1.0" && request[2] != "HTTP/1.1")      return 400;    while (line.value != "") {      lis.readLine(line);    }    if (request[1][0] != "/")      return 400;    return request[1];  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/447660b4bb14564c59af818e945087832c4f566d/head_http_server.js/clean/netwerk/test/unit/head_http_server.js