Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP header incompatibility #334

Open
sys9kdr opened this issue Jan 12, 2025 · 0 comments
Open

HTTP header incompatibility #334

sys9kdr opened this issue Jan 12, 2025 · 0 comments

Comments

@sys9kdr
Copy link

sys9kdr commented Jan 12, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant