Fix content length method

This commit is contained in:
Marcel Pociot 2019-02-27 15:27:51 +01:00
parent 15e6b6ae96
commit 82bba5bd02
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ abstract class Controller implements HttpServerInterface
{
return Collection::make($headers)->first(function ($values, $header) {
return strtolower($header) === 'content-length';
});
})[0] ?? 0;
}
public function onMessage(ConnectionInterface $from, $msg)