Skip to content

[homeserver] "Host" header is not read #235

@86667

Description

@86667

We expect "Host" as well as "Pubky-Host" to be valid headers in http requests. However:

curl -i https://homeserver.staging.pubky.app/pub/pubky.app/hello.txt -H "Host: b3p9kmimbq8irxe8hwwg85qbe34r3i6f3fcqw9jo61wsh13eftio" 

returns HTTP/1.1 404 Not Found

Whilst:

curl -i https://homeserver.staging.pubky.app/pub/pubky.app/hello.txt -H "Pubky-Host: b3p9kmimbq8irxe8hwwg85qbe34r3i6f3fcqw9jo61wsh13eftio"

returns HTTP/1.1 200 OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions