Skip to content

Commit 25a379f

Browse files
committed
bug symfony#17340 [HttpFoundation] Fixed Request HTTP_USER_AGENT on 3.X versions (davelima)
This PR was merged into the 3.0 branch. Discussion ---------- [HttpFoundation] Fixed Request HTTP_USER_AGENT on 3.X versions | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#17335 | License | MIT [HttpFoundation] Fixed Request HTTP_USER_AGENT on 3.X versions Commits ------- 1ccc15d [HttpFoundation] Fixed Request HTTP_USER_AGENT on 3.X versions
2 parents 8b6503d + 1ccc15d commit 25a379f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public static function create($uri, $method = 'GET', $parameters = array(), $coo
311311
'SERVER_NAME' => 'localhost',
312312
'SERVER_PORT' => 80,
313313
'HTTP_HOST' => 'localhost',
314-
'HTTP_USER_AGENT' => 'Symfony/2.X',
314+
'HTTP_USER_AGENT' => 'Symfony/3.X',
315315
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
316316
'HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5',
317317
'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',

0 commit comments

Comments
 (0)