PHPDaemon/Servers/HTTP/Connection.php 1 location
|
@@ 136-139 (lines=4) @@
|
133 |
|
if (isset($e[1])) { |
134 |
|
$this->currentHeader = 'HTTP_' . strtoupper(strtr($e[0], Generic::$htr)); |
135 |
|
$this->req->attrs->server[$this->currentHeader] = $e[1]; |
136 |
|
} elseif (($e[0][0] === "\t" || $e[0][0] === "\x20") && $this->currentHeader) { |
137 |
|
// multiline header continued |
138 |
|
$this->req->attrs->server[$this->currentHeader] .= $e[0]; |
139 |
|
} else { |
140 |
|
// whatever client speaks is not HTTP anymore |
141 |
|
$this->badRequest($this->req); |
142 |
|
return false; |
PHPDaemon/Servers/WebSocket/Connection.php 1 location
|
@@ 341-344 (lines=4) @@
|
338 |
|
if (isset($e[1])) { |
339 |
|
$this->currentHeader = 'HTTP_' . strtoupper(strtr($e[0], Generic::$htr)); |
340 |
|
$this->server[$this->currentHeader] = $e[1]; |
341 |
|
} elseif (($e[0][0] === "\t" || $e[0][0] === "\x20") && $this->currentHeader) { |
342 |
|
// multiline header continued |
343 |
|
$this->server[$this->currentHeader] .= $e[0]; |
344 |
|
} else { |
345 |
|
// whatever client speaks is not HTTP anymore |
346 |
|
$this->badRequest(); |
347 |
|
return false; |