mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Merge branch 'develop' into feature/not-found-tracking
This commit is contained in:
commit
cc42f037c7
1 changed files with 5 additions and 1 deletions
|
@ -11,12 +11,16 @@ use Mezzio\Router;
|
|||
use PhpMiddleware\RequestId\RequestIdMiddleware;
|
||||
use RKA\Middleware\IpAddress;
|
||||
|
||||
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