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