Skip to content

Commit

Permalink
chore: fix types for undici v6.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
3846masa committed May 2, 2024
1 parent ccb267e commit e94d620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/undici/cookie_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CookieHandler implements Required<Dispatcher.DispatchHandlers> {
this[kHandlers].onUpgrade?.(statusCode, headers, socket);
};

onHeaders = (statusCode: number, _headers: string[] | null, resume: () => void, statusText: string): boolean => {
onHeaders = (statusCode: number, _headers: Buffer[], resume: () => void, statusText: string): boolean => {
if (this[kHandlers].onHeaders == null) {
throw new errors.InvalidArgumentError('invalid onHeaders method');
}
Expand Down

0 comments on commit e94d620

Please sign in to comment.