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
|
@@ 319-322 (lines=4) @@
|
| 316 |
|
$this->currentHeader = 'HTTP_' . strtoupper(strtr($e[0], Generic::$htr)); |
| 317 |
|
$this->server[$this->currentHeader] = $e[1]; |
| 318 |
|
} |
| 319 |
|
elseif (($e[0][0] === "\t" || $e[0][0] === "\x20") && $this->currentHeader) { |
| 320 |
|
// multiline header continued |
| 321 |
|
$this->server[$this->currentHeader] .= $e[0]; |
| 322 |
|
} |
| 323 |
|
else { |
| 324 |
|
// whatever client speaks is not HTTP anymore |
| 325 |
|
$this->badRequest(); |