8000 Fixed AcceptHeader use example · symfony/symfony-docs@18f1a2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 18f1a2e

Browse files
bakulinavweaverryan
authored andcommitted
Fixed AcceptHeader use example
1 parent 74ed0f2 commit 18f1a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_foundation/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ If you need to get full access to parsed data from ``Accept``, ``Accept-Language
251251

252252
$accept = AcceptHeader::fromString($request->headers->get('Accept'));
253253
if ($accept->has('text/html')) {
254-
$item = $accept->get('html');
254+
$item = $accept->get('text/html');
255255
$charset = $item->getAttribute('charset', 'utf-8');
256256
$quality = $item->getQuality();
257257
}

0 commit comments

Comments
 (0)
0