summaryrefslogtreecommitdiff
path: root/cli/test_runner.rs
diff options
context:
space:
mode:
authorYusuke Sakurai <kerokerokerop@gmail.com>2020-02-25 12:49:39 +0900
committerGitHub <noreply@github.com>2020-02-24 22:49:39 -0500
commit22f88b9f37b7e233fd4f15b73d5a2096224e56dc (patch)
treea623c34e8af0e98ed8d56d875412688cab79634b /cli/test_runner.rs
parent5c1ab080cd8989c3ac2b3a8c919fe14052feac79 (diff)
fix: [http] Consume unread body and trailers before reading next request (#3990)
- Added `ServerRequest.finalize()`: consuming all unread body stream and trailers. - This is cleanup method for reading next request from same keep-alive connection. - Needed when handler didn't consume all body and trailers even after responding. - refactor: `ServerRequest._bodyStream()`, `ServerRequestBody` are removed. - Now using `bodyReader()` and `chunkedBodyReader()` instead. - fix: Trailers should only be read `transfer-encoding` is `chunked` and `trailer` header is set and its value is valid. - fix: use `Headers.append()` on reading trailers. - fix: delete `trailer` field from headers after reading trailers. - reorg: Several functions related to IO are moved into `http/io.ts`
Diffstat (limited to 'cli/test_runner.rs')
-rw-r--r--cli/test_runner.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/test_runner.rs b/cli/test_runner.rs
index 3d177f60e..b2eea3480 100644
--- a/cli/test_runner.rs
+++ b/cli/test_runner.rs
@@ -131,6 +131,7 @@ mod tests {
let expected: Vec<Url> = vec![
format!("{}/cookie_test.ts", root_url),
format!("{}/file_server_test.ts", root_url),
+ format!("{}/io_test.ts", root_url),
format!("{}/racing_server_test.ts", root_url),
format!("{}/server_test.ts", root_url),
]