mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Fixed issue with swoole 4.6.3
This commit is contained in:
parent
4d5dd8c8de
commit
bec467c703
1 changed files with 5 additions and 1 deletions
|
@ -10,12 +10,16 @@ use Mezzio\ProblemDetails;
|
|||
use Mezzio\Router;
|
||||
use PhpMiddleware\RequestId\RequestIdMiddleware;
|
||||
|
||||
use function extension_loaded;
|
||||
|
||||
return [
|
||||
|
||||
'middleware_pipeline' => [
|
||||
'error-handler' => [
|
||||
'middleware' => [
|
||||
Helper\ContentLengthMiddleware::class,
|
||||
// For some reason, with swoole 4.6.3, piping this middleware makes requests to have incomplete body or
|
||||
// never finish loading. Disabling it for swoole fixes it as it already calculates the header on itself
|
||||
...extension_loaded('swoole') ? [] : [Helper\ContentLengthMiddleware::class],
|
||||
ErrorHandler::class,
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue