改名
This commit is contained in:
@@ -69,11 +69,7 @@ class Request implements RequestInterface
|
|||||||
*/
|
*/
|
||||||
private function parseHeaders(\Swoole\Http\Request $request): static
|
private function parseHeaders(\Swoole\Http\Request $request): static
|
||||||
{
|
{
|
||||||
// foreach ($request->header as $key => $value) {
|
$index = strpos($request->getData(), "\r\n\r\n");
|
||||||
// $this->addHeader($key, $value);
|
|
||||||
// }
|
|
||||||
|
|
||||||
$index = strpos("\r\n\r\n", $request->getData());
|
|
||||||
$headers = explode("\r\n", substr($request->getData(), 0, $index));
|
$headers = explode("\r\n", substr($request->getData(), 0, $index));
|
||||||
|
|
||||||
array_shift($headers);
|
array_shift($headers);
|
||||||
|
|||||||
Reference in New Issue
Block a user