URI has no host
odahcam opened this issue · comments
Detailed description
Due to the RequestTranformer::toSlim
implementation, the URI gets a null host key.
Context
I wanna get the hostname in my application.
Possible implementation
Just use the \Slim\Http\Uri class to create the URI from a string.
Your environment
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
- Version used (e.g. PHP 7.0, 7.1): 7.2
- Operating system and version (e.g. Ubuntu 16.04, Windows 7): Alpine Docker env
@odahcam , sorry for the very late reply.
I now intend to continue maintaining this tiny library so I'll review your issue and come back to you with a proposal.
In the meanwhile, what version of Slim are you using?
@odahcam, Can you try this branch?
https://github.com/pachico/slim-swoole/tree/0.4-dev