Skip to content

HTTP header incompatibility #334

@sys9kdr

Description

@sys9kdr

I noticed that Hyper-Express has some incompatibilities with Express regarding HTTP headers. While I understand that Hyper-Express doesn't need to fully replicate Express's behavior.

For certain headers, such as Content-Type or Keep-Alive, it might be beneficial to consider aligning with Express's behavior to some extent.

express

HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 5
ETag: W/"5-qvTGHdzF6KLavt4PO0gs2a6pQ00"
Date: Tue, 24 Dec 2024 12:48:51 GMT
Connection: keep-alive
Keep-Alive: timeout=5

hyper-express

HTTP/1.1 200 OK
Date: Tue, 24 Dec 2024 12:49:25 GMT
Content-Length: 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions