PHPDaemon/Servers/HTTP/Connection.php 1 location
|
@@ 131-134 (lines=4) @@
|
| 128 |
|
$this->currentHeader = 'HTTP_' . strtoupper(strtr($e[0], Generic::$htr)); |
| 129 |
|
$this->req->attrs->server[$this->currentHeader] = $e[1]; |
| 130 |
|
} |
| 131 |
|
elseif (($e[0][0] === "\t" || $e[0][0] === "\x20") && $this->currentHeader) { |
| 132 |
|
// multiline header continued |
| 133 |
|
$this->req->attrs->server[$this->currentHeader] .= $e[0]; |
| 134 |
|
} |
| 135 |
|
else { |
| 136 |
|
// whatever client speaks is not HTTP anymore |
| 137 |
|
$this->badRequest($this->req); |
PHPDaemon/Servers/WebSocket/Connection.php 1 location
|
@@ 325-328 (lines=4) @@
|
| 322 |
|
$this->currentHeader = 'HTTP_' . strtoupper(strtr($e[0], Generic::$htr)); |
| 323 |
|
$this->server[$this->currentHeader] = $e[1]; |
| 324 |
|
} |
| 325 |
|
elseif (($e[0][0] === "\t" || $e[0][0] === "\x20") && $this->currentHeader) { |
| 326 |
|
// multiline header continued |
| 327 |
|
$this->server[$this->currentHeader] .= $e[0]; |
| 328 |
|
} |
| 329 |
|
else { |
| 330 |
|
// whatever client speaks is not HTTP anymore |
| 331 |
|
$this->badRequest(); |