Fix content length method
This commit is contained in:
parent
15e6b6ae96
commit
82bba5bd02
|
|
@ -52,7 +52,7 @@ abstract class Controller implements HttpServerInterface
|
||||||
{
|
{
|
||||||
return Collection::make($headers)->first(function ($values, $header) {
|
return Collection::make($headers)->first(function ($values, $header) {
|
||||||
return strtolower($header) === 'content-length';
|
return strtolower($header) === 'content-length';
|
||||||
});
|
})[0] ?? 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onMessage(ConnectionInterface $from, $msg)
|
public function onMessage(ConnectionInterface $from, $msg)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue