diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-17 18:57:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 22:57:31 +0000 |
commit | 74be01273c16b83b1063da1750045b12e095f0c3 (patch) | |
tree | a58a74664bb06524d82c55360cca03afac9649cd /cli/tests/unit/http_test.ts | |
parent | 204c46dcc1dc5d77ecbe4bb0c4b131a5110885bc (diff) |
chore: upgrade internal deno_std to 0.160 (#16333)
Diffstat (limited to 'cli/tests/unit/http_test.ts')
-rw-r--r-- | cli/tests/unit/http_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/unit/http_test.ts b/cli/tests/unit/http_test.ts index 7bb16aecc..63eae3ace 100644 --- a/cli/tests/unit/http_test.ts +++ b/cli/tests/unit/http_test.ts @@ -4,7 +4,7 @@ import { BufReader, BufWriter, } from "../../../test_util/std/io/buffer.ts"; -import { TextProtoReader } from "../../../test_util/std/textproto/mod.ts"; +import { TextProtoReader } from "../testdata/run/textproto.ts"; import { serve, serveTls } from "../../../test_util/std/http/server.ts"; import { assert, @@ -30,7 +30,7 @@ async function writeRequestAndReadResponse(conn: Deno.Conn): Promise<string> { const tpr = new TextProtoReader(r); const statusLine = await tpr.readLine(); assert(statusLine !== null); - const headers = await tpr.readMIMEHeader(); + const headers = await tpr.readMimeHeader(); assert(headers !== null); const chunkedReader = chunkedBodyReader(headers, r); @@ -605,7 +605,7 @@ Deno.test( const tpr = new TextProtoReader(r); const statusLine = await tpr.readLine(); assert(statusLine !== null); - const headers = await tpr.readMIMEHeader(); + const headers = await tpr.readMimeHeader(); assert(headers !== null); const chunkedReader = chunkedBodyReader(headers, r); @@ -751,7 +751,7 @@ Deno.test( assert(m !== null, "must be matched"); const [_, _proto, status, _ok] = m; assertEquals(status, "200"); - const headers = await tpr.readMIMEHeader(); + const headers = await tpr.readMimeHeader(); assert(headers !== null); } @@ -2459,7 +2459,7 @@ async function readTrailers( if (trailers == null) return; const trailerNames = [...trailers.keys()]; const tp = new TextProtoReader(r); - const result = await tp.readMIMEHeader(); + const result = await tp.readMimeHeader(); if (result == null) { throw new Deno.errors.InvalidData("Missing trailer header."); } |