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
|
@@ 310-313 (lines=4) @@
|
| 307 |
|
$this->currentHeader = 'HTTP_' . strtoupper(strtr($e[0], Generic::$htr)); |
| 308 |
|
$this->server[$this->currentHeader] = $e[1]; |
| 309 |
|
} |
| 310 |
|
elseif (($e[0][0] === "\t" || $e[0][0] === "\x20") && $this->currentHeader) { |
| 311 |
|
// multiline header continued |
| 312 |
|
$this->server[$this->currentHeader] .= $e[0]; |
| 313 |
|
} |
| 314 |
|
else { |
| 315 |
|
// whatever client speaks is not HTTP anymore |
| 316 |
|
$this->badRequest(); |