We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 413e712 commit ec16fe1Copy full SHA for ec16fe1
src/Functions.php
@@ -32,7 +32,7 @@ function view($view = null, array|Arrayable $data = [], $mergeData = []): Factor
32
$container = ApplicationContext::getContainer();
33
if (interface_exists(ResponseInterface::class) && Context::has(ResponseInterface::class)) {
34
$contentType = $container->get(RenderInterface::class)->getContentType();
35
- ResponseContext::get()->addHeader('content-type', $contentType);
+ ResponseContext::get()->setHeader('content-type', $contentType);
36
}
37
38
$factory = $container->get(FactoryInterface::class);
0 commit comments