Skip to content

[HttpKernel] Turn bad hosts into 400 instead of 500 #25750

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
Jan 10, 2018

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

@sroze
Copy link
Contributor

sroze commented Jan 10, 2018

Definitely makes sense 👍

@fabpot
Copy link
Member

fabpot commented Jan 10, 2018

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 3e47c71 into symfony:2.7 Jan 10, 2018
fabpot added a commit that referenced this pull request Jan 10, 2018
…as-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpKernel] Turn bad hosts into 400 instead of 500

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

3e47c71 [HttpKernel] Turn bad hosts into 400 instead of 500
/**
* @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
*/
public function testSubRequestWithBadHost()
Copy link
Member

Choose a reason for hiding this comment

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

It's not about sub request. But master request

Copy link
Member Author

Choose a reason for hiding this comment

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

"Sub" removed, thanks

Copy link
Member Author

Choose a reason for hiding this comment

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

oups, it's already merged :) PR welcome then :P

nicolas-grekas added a commit that referenced this pull request Jan 11, 2018
This PR was merged into the 2.7 branch.

Discussion
----------

[HttpKernel] Fixed test name

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25750 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

e366772 [HttpKernel] Fixed test name
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.

5 participants