symfony/symfony — pull request #11356 by bcremer (2014-07-09 08:05:20+00:00)
Title: [BrowserKit] Fixed server HTTP_HOST port uri conversion

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

This will fix URI conversion using the HTTP_HOST server header.

Steps to reproduce:
```
$client = new TestClient();
$server = array('HTTP_HOST' => 'example.com:8000');
$client->request('GET', 'http://example.com', [], [], $server);

echo $client->getRequest()->getUri();
// outputs: http://example.com:8000:8000
// exptected: http://example.com:8000
```

We discovered this issue during [mink](https://github.com/Behat/Mink) testing using [goutte](https://github.com/fabpot/goutte) on a not standard port.