Skip to content

Virtual Hosts don't work with HTTP/2 #569

@CrazyCraftix

Description

@CrazyCraftix

Search for duplicate issues

  • I already searched, and this issue is not a duplicate.

Issue scope

BSD (E.g. FreeBSD, NetBSD, illumos)

Describe the bug

I noticed that virtual hosts are not working for me. I found out that this is because the HTTP host header is used to determine the hostname that is being accessed, and my browser does not send that header. Turns out HTTP/2 uses a different mechanism to send this information, the ":authority" pseudo-header field.

How to reproduce it

Try to use virtual hosts with HTTP/2

Expected behavior

Virtual hosts should work with HTTP/2

Complementary information

No response

Build target

aarch64-unknown-linux-gnu

Environment and specs

Comeon, this is irrelevant. I already made a fix but am not allowed to create a PR without creating an issue first.

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv2v2 release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions