rem: var contentType = batch.req.getResponseHeader("Content-Type"); if (!contentType.match(/^text\/plain/) && !contentType.match(/^text\/javascript/)) { if (DWREngine._textHtmlHandler && contentType.match(/^text\/html/)) { DWREngine._textHtmlHandler(); return; } else { DWREngine._handleMetaDataWarning(null, "Invalid content type from server: '" + contentType + "'"); } }     if (batch.req == DWREngine._pollReq) { DWREngine._processCometResponse(reply); } else {  if (reply.search("DWREngine._handle") == -1) { DWREngine._handleMetaDataWarning(null, "Invalid reply from server"); return; } eval(reply); } 
context: DWREngine._stateChange = function(batch) {  if (!batch.completed && batch.req.readyState == 4) {    try {      var reply = batch.req.responseText;      reply = DWREngine._replyRewriteHandler(reply);      if (reply == null || reply == "") {        DWREngine._handleMetaDataWarning(null, "No data received from server");        return;      }      var contentType = batch.req.getResponseHeader("Content-Type");      if (!contentType.match(/^text\/plain/) && !contentType.match(/^text\/javascript/)) {        if (DWREngine._textHtmlHandler && contentType.match(/^text\/html/)) {          DWREngine._textHtmlHandler();          return;        }        else {          DWREngine._handleMetaDataWarning(null, "Invalid content type from server: '" + contentType + "'");        }      }      // Skip checking the xhr.status because the above will do for most errors      // and because it causes Mozilla to error      // Comet replies might have already partially executed      if (batch.req == DWREngine._pollReq) {        DWREngine._processCometResponse(reply);      }      else {        // This should get us out of 404s etc.        if (reply.search("DWREngine._handle") == -1) {          DWREngine._handleMetaDataWarning(null, "Invalid reply from server");          return;        }        eval(reply);      }      // We're done. Clear up      DWREngine._clearUp(batch);    }    catch (ex) {      if (ex == null) ex = "Unknown error occured";      DWREngine._handleMetaDataWarning(null, ex);    }    finally {      // If there is anything on the queue waiting to go out, then send it.      // We don't need to check for ordered mode, here because when ordered mode      // gets turned off, we still process *waiting* batches in an ordered way.      if (DWREngine._batchQueue.length != 0) {        var sendbatch = DWREngine._batchQueue.shift();        DWREngine._sendData(sendbatch);        DWREngine._batches[DWREngine._batches.length] = sendbatch;      }    }  }};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/5854a48f8e5d0021d9f0f43dca9db26d944ec90f/engine.js/buggy/java/org/directwebremoting/engine.js