mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
chore: upgrade internal deno_std to 0.160 (#16333)
This commit is contained in:
parent
204c46dcc1
commit
74be01273c
11 changed files with 206 additions and 41 deletions
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue