roadrunner-server / roadrunner

🤯 High-performance PHP application server, process manager written in Go and powered with plugins
https://docs.roadrunner.dev
MIT License
7.86k stars 409 forks source link

Missed REQUEST_URI in server variables #177

Closed POPSuL closed 5 years ago

POPSuL commented 5 years ago

Too many frameworks used $_SERVER['REQUEST_URI'] variable to determine requested uri (at least symfony and symfony-based FWs). I though that code https://github.com/spiral/roadrunner/blob/master/src/PSR7Client.php#L137 should contains something like that:

$server['REQUEST_URI'] = $rawRequest['ctx']['uri'];
wolfy-j commented 5 years ago

Feel free to submit PR. We are expecting your code to rely on PSR-7 Uri, but I see the value of adding such fallback.

wolfy-j commented 5 years ago

Added in upcoming version.