{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13567","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13567/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13567/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13567/events","html_url":"https://github.com/symfony/symfony/pull/13567","id":56142284,"number":13567,"title":"[Routing] make host matching case-insensitive","user":{"login":"Tobion","id":610090,"avatar_url":"https://avatars.githubusercontent.com/u/610090?v=3","gravatar_id":"","url":"https://api.github.com/users/Tobion","html_url":"https://github.com/Tobion","followers_url":"https://api.github.com/users/Tobion/followers","following_url":"https://api.github.com/users/Tobion/following{/other_user}","gists_url":"https://api.github.com/users/Tobion/gists{/gist_id}","starred_url":"https://api.github.com/users/Tobion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tobion/subscriptions","organizations_url":"https://api.github.com/users/Tobion/orgs","repos_url":"https://api.github.com/users/Tobion/repos","events_url":"https://api.github.com/users/Tobion/events{/privacy}","received_events_url":"https://api.github.com/users/Tobion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Routing","name":"Routing","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-31T22:28:30Z","updated_at":"2015-02-05T06:17:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/13567","html_url":"https://github.com/symfony/symfony/pull/13567","diff_url":"https://github.com/symfony/symfony/pull/13567.diff","patch_url":"https://github.com/symfony/symfony/pull/13567.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | #9072\r\n| License       | MIT\r\n| Doc PR        |\r\n\r\nIgnore case in host which means:\r\n- When generating URLs we leave the case in the host as specified.\r\n- When matching we always return lower-cased versions of parameters (because of https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Routing/RequestContext.php#L190 ) in the host. This is also what browers do. They lowercase the host before sending the request, i.e. WWW.eXample.org is sent as www.example.org. But when using curl for example it sends the host as-is. So the HttpFoundation Request class can actually have a non-lowercased host because it doesn't have this normalization."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/72999910","html_url":"https://github.com/symfony/symfony/pull/13567#issuecomment-72999910","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13567","id":72999910,"user":{"login":"fabpot","id":47313,"avatar_url":"https://avatars.githubusercontent.com/u/47313?v=3","gravatar_id":"","url":"https://api.github.com/users/fabpot","html_url":"https://github.com/fabpot","followers_url":"https://api.github.com/users/fabpot/followers","following_url":"https://api.github.com/users/fabpot/following{/other_user}","gists_url":"https://api.github.com/users/fabpot/gists{/gist_id}","starred_url":"https://api.github.com/users/fabpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabpot/subscriptions","organizations_url":"https://api.github.com/users/fabpot/orgs","repos_url":"https://api.github.com/users/fabpot/repos","events_url":"https://api.github.com/users/fabpot/events{/privacy}","received_events_url":"https://api.github.com/users/fabpot/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T06:17:44Z","updated_at":"2015-02-05T06:17:44Z","body":"Thank you @Tobion."}}