protected function onEOF()
{
if (!$this->req) {
return;
}
if ($this->frozen) {
return;
}
if ($this->req->attrs->inputDone) {
return;
}
$this->curPart =& $foo;
$this->req->attrs->inputDone = true;
$this->req->attrs->raw = '';
if (($l = $this->length) > 0) {
$this->req->attrs->raw = $this->read($l);
if (isset($this->req->contype['application/x-www-form-urlencoded'])) {
Generic::parseStr($this->req->attrs->raw, $this->req->attrs->post);
}
if (isset($this->req->contype['application/json']) || isset($this->req->contype['application/x-json'])) {
$this->req->attrs->post = json_decode($this->req->attrs->raw, true);
}
}
$this->req->postPrepare();
$this->req->checkIfReady();
}