Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[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

Merged
merged 1 commit into from
Dec 8, 2017

Conversation

lyrixx
Copy link
Member

@lyrixx 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',
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for removing the version

@nicolas-grekas nicolas-grekas added this to the 4.0 milestone Dec 8, 2017
@nicolas-grekas
Copy link
Member

Why remove the version number?
For reference, we changed from 2 to 3 without much discussion in #17340
So let's have a real discussion now?
To me, the version seems legit as it provides a hint that could be useful.
I wouldn't mind either removing it, but why in the first place?

@lyrixx
Copy link
Member Author

lyrixx commented Dec 8, 2017

Actually I really don't care. I removed it as @javiereguiluz suggested it in order to ease maintenance.
More over this value is almost useless, as it's a default value that is almost every-time overrided. I don't really see when this value could give an hint. You may be confused because of the BrowserKit Client ?

Copy link
Member

@fabpot fabpot left a 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.

@nicolas-grekas
Copy link
Member

Thank you @lyrixx.

@nicolas-grekas nicolas-grekas merged commit ac007e1 into symfony:4.0 Dec 8, 2017
nicolas-grekas added a commit that referenced this pull request Dec 8, 2017
…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)
@lyrixx lyrixx deleted the user-agent branch December 8, 2017 17:23
@javiereguiluz javiereguiluz mentioned this pull request Dec 9, 2017
@fabpot fabpot mentioned this pull request Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.