bug #78 Fix populating default port and headers in HttpFoundationFactory (mleczakm)
bug #78 Fix populating default port and headers in HttpFoundationFactory (mleczakm)

This PR was merged into the 2.0-dev branch.

Discussion
----------

Fix populating default port and headers in HttpFoundationFactory

These are few dirty hacks which are required to get symfony up and running as Roadrunner psr7 worker:
 - overriding headers need to be removed to be able to send basic auth headers.
 - setting `$_SERVER['https']` to true is required for properly handling non-proxied requests, handled with encryption directly from Roadrunner - same as https://github.com/symfony/psr-http-message-bridge/pull/77
 - setting default server port fixes error with interpreting no port defined in url as `0`

Commits
-------

4f30401 Fix populating default port and headers in HttpFoundationFactory

symfony/psr-http-message-bridge