Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Jul 17, 2024
1 parent e224cdd commit 9de9efb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bidiMapper/modules/network/NetworkRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ export class NetworkRequest {
(requestInterceptionExpected
? requestInterceptionCompleted
: requestExtraInfoCompleted)
) {ODO.bind(this));
) {
this.#emitEvent(this.#getBeforeRequestEvent.bind(this));
}

const responseExtraInfoCompleted =
Boolean(this.#response.extraInfo) ||
// Response from cache don't have extra info
Expand Down Expand Up @@ -906,7 +906,7 @@ export class NetworkRequest {
cookies: Network.CookieHeader[] | undefined
): Network.Header[] | undefined {
if (!headers && !cookies) {
return [];
return undefined;
}
let overrideHeaders: Network.Header[] | undefined = headers;
const cookieHeader = networkHeaderFromCookieHeaders(cookies);
Expand Down

0 comments on commit 9de9efb

Please sign in to comment.