adjust setHandled to request of call parameter

pull/1/head
reger 11 years ago
parent 127adbf5cf
commit b8da176c5d

@ -272,9 +272,8 @@ public class TemplateHandler extends AbstractHandler implements Handler {
result.writeTo(response.getOutputStream());
// we handled this request, break out of handler chain
Request base_request = (request instanceof Request) ? (Request)request:HttpConnection.getCurrentConnection().getRequest();
base_request.setHandled(true);
// is null on SSI template
if (baseRequest != null) baseRequest.setHandled(true);
return;
}
@ -320,8 +319,8 @@ public class TemplateHandler extends AbstractHandler implements Handler {
fis.close();
// we handled this request, break out of handler chain
Request base_request = (request instanceof Request) ? (Request)request:HttpConnection.getCurrentConnection().getRequest();
base_request.setHandled(true);
// is null on SSI template
if (baseRequest != null) baseRequest.setHandled(true);
}
}
}

Loading…
Cancel
Save