-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Fixed default user-agent (3.X -> 4.X) #25392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lyrixx
commented
Dec 8, 2017
Q | A |
---|---|
Branch? | 4.0 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #25390 |
License | MIT |
Doc PR |
@@ -312,7 +312,7 @@ public static function create($uri, $method = 'GET', $parameters = array(), $coo | ||
'SERVER_NAME' => 'localhost', | ||
'SERVER_PORT' => 80, | ||
'HTTP_HOST' => 'localhost', | ||
'HTTP_USER_AGENT' => 'Symfony/3.X', | ||
'HTTP_USER_AGENT' => 'Symfony/4.X', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and the usual question when we do changes like this: can we remove the version number? would it make sense to do that? is it valid as a User Agent string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for removing the version
Why remove the version number? |
Actually I really don't care. I removed it as @javiereguiluz suggested it in order to ease maintenance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the version seems the right thing to do.
Thank you @lyrixx. |
…rixx) This PR was merged into the 4.0 branch. Discussion ---------- [HttpFoundation] Fixed default user-agent (3.X -> 4.X) | Q | A | ------------- | --- | Branch? | 4.0 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25390 | License | MIT | Doc PR | Commits ------- ac007e1 [HttpFoundation] Fixed default user-agent (3.X -> 4.X)