Commit df735ec
committed
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 symfony/psr-http-message-bridge#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 HttpFoundationFactory1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments