| @@ 295-304 (lines=10) @@ | ||
| 292 | $this->state = self::STATE_HEADERS; |
|
| 293 | } |
|
| 294 | ||
| 295 | if ($this->state === self::STATE_HEADERS) { |
|
| 296 | if (!$this->httpReadHeaders()) { |
|
| 297 | return; |
|
| 298 | } |
|
| 299 | if (!$this->httpProcessHeaders()) { |
|
| 300 | $this->finish(); |
|
| 301 | return; |
|
| 302 | } |
|
| 303 | $this->state = self::STATE_CONTENT; |
|
| 304 | } |
|
| 305 | if ($this->state === self::STATE_CONTENT) { |
|
| 306 | if (!isset($this->req->attrs->input) || !$this->req->attrs->input) { |
|
| 307 | $this->finish(); |
|
| @@ 390-399 (lines=10) @@ | ||
| 387 | $this->state = self::STATE_HEADERS; |
|
| 388 | } |
|
| 389 | ||
| 390 | if ($this->state === self::STATE_HEADERS) { |
|
| 391 | if (!$this->httpReadHeaders()) { |
|
| 392 | return; |
|
| 393 | } |
|
| 394 | if (!$this->httpProcessHeaders()) { |
|
| 395 | $this->finish(); |
|
| 396 | return; |
|
| 397 | } |
|
| 398 | $this->state = self::STATE_CONTENT; |
|
| 399 | } |
|
| 400 | if ($this->state === self::STATE_CONTENT) { |
|
| 401 | $this->state = self::STATE_PREHANDSHAKE; |
|
| 402 | } |
|