Skip to content

Commit 1d579f9

Browse files
committed
use IntdDict
1 parent 79a0946 commit 1d579f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/llhttp/http.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Match = source.node.Match;
55
import Node = source.node.Node;
66

77
import {
8+
type IntDict,
89
CONNECTION_TOKEN_CHARS, ERROR, FINISH, FLAGS, H_METHOD_MAP, HEADER_CHARS,
910
HEADER_STATE, HEX_MAP, HTAB_SP_VCHAR_OBS_TEXT,
1011
LENIENT_FLAGS,
@@ -456,7 +457,7 @@ export class HTTP {
456457
this.update('http_minor', 9, onUrlCompleteHTTP09)),
457458
);
458459

459-
const checkMethod = (methods: Record<string, number>, error: string): Node => {
460+
const checkMethod = (methods: IntDict, error: string): Node => {
460461
const success = n('req_after_protocol');
461462
const failure = p.error(ERROR.INVALID_CONSTANT, error);
462463

0 commit comments

Comments
 (0)