pachico/slim-swoole

URI has no host

odahcam opened this issue · 2 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?