Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

HTTP/0.9 does not have header fields #386

Open
tatsuhiro-t opened this issue Sep 6, 2017 · 0 comments
Open

HTTP/0.9 does not have header fields #386

tatsuhiro-t opened this issue Sep 6, 2017 · 0 comments

Comments

@tatsuhiro-t
Copy link
Contributor

According to https://www.w3.org/Protocols/HTTP/AsImplemented.html, HTTP/0.9 does not have header fields, and single CR + LF pair (or just LF) after a request line signals the end of request.
But current http-parser waits for 2nd CR + LF pair.

See how apache works:

$ telnet 127.0.0.1 80
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
Connection closed by foreign host.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant