Skip to content

Commit cdad036

Browse files
committed
Merge pull request #235 from stof/use_request
Use the HttpFoundation API to read the header in the test kernel
2 parents 843ead4 + dd32e17 commit cdad036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Functional/Fixtures/Symfony/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQ
2727
case '/negotiation':
2828
$response = new Response(microtime(true));
2929
$response->setCache(['max_age' => 3600, 'public' => true]);
30-
$response->headers->set('Content-Type', $_SERVER['HTTP_ACCEPT']);
30+
$response->headers->set('Content-Type', $request->headers->get('Accept'));
3131
$response->setVary('Accept');
3232

3333
return $response;

0 commit comments

Comments
 (0)