Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Host not set on request URI #20

@fredemmott

Description

@fredemmott
<<__EntryPoint>>
async function site_main_async(): Awaitable<noreturn> {
   $request = Usox\HackTTP\createServerRequestFromGlobals();
   \var_dump($request->getUri()->getHost());
   exit(0);
}
$ curl -H "Host: docs.hhvm.com" http://localhost:8080
string(0) ""
$ curl http://localhost:8080
string(0) ""

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions