Файловый менеджер - Редактировать - /var/www/html/libraries/vendor/laminas/laminas-diactoros/src/Response/InjectContentTypeTrait.php
Ðазад
<?php declare(strict_types=1); namespace Laminas\Diactoros\Response; use function array_keys; use function array_reduce; use function strtolower; trait InjectContentTypeTrait { /** * Inject the provided Content-Type, if none is already present. * * @return array Headers with injected Content-Type */ private function injectContentType(string $contentType, array $headers): array { $hasContentType = array_reduce( array_keys($headers), static fn($carry, $item) => $carry ?: strtolower($item) === 'content-type', false ); if (! $hasContentType) { $headers['content-type'] = [$contentType]; } return $headers; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка