Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

URI has no host #18

Open
odahcam opened this issue Jan 19, 2021 · 2 comments
Open

URI has no host #18

odahcam opened this issue Jan 19, 2021 · 2 comments

Comments

@odahcam
Copy link

odahcam commented Jan 19, 2021

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
@pachico
Copy link
Owner

pachico commented Mar 13, 2021

@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?

@pachico
Copy link
Owner

pachico commented Mar 14, 2021

@odahcam, Can you try this branch?
https://github.com/pachico/slim-swoole/tree/0.4-dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants