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] add ParseHTTPVersion #452

Merged
merged 3 commits into from
May 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
disable useless tests
  • Loading branch information
zekth committed May 25, 2019
commit 6e88d9ba8cd70a7e3d53f8df787910ea5e0a0695
15 changes: 0 additions & 15 deletions http/server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,21 +365,6 @@ test(async function testReadRequestError(): Promise<void> {
in: "HEAD / HTTP/1.1\r\nContent-Length:0\r\nContent-Length: 0\r\n\r\n",
headers: [{ key: "Content-Length", value: "0" }],
err: null
},
11: {
in: "GET / HTTP/1.A\r\nContent-Length:0\r\n\r\n",
headers: [{ key: "Content-Length", value: "0" }],
err: `malformed HTTP version HTTP/1.A`
},
12: {
in: "GET / HTTP/A.1\r\nContent-Length:0\r\n\r\n",
headers: [],
err: `malformed HTTP version HTTP/A.1`
},
13: {
in: "GET / HTTP/1.0\r\nContent-Length:4\r\n\r\n",
headers: [{ key: "Content-Length", value: "4" }],
err: null
}
};
for (const p in testCases) {
Expand Down