chore: remove redundant checks from network interception (#28922)
We only intercept requests in Playwright so these fields are always undefined.
This commit is contained in:
parent
2ddf3a45f9
commit
19a4f15eb6
|
|
@ -305,7 +305,7 @@ export class CRNetworkManager {
|
|||
});
|
||||
this._requestIdToRequest.set(requestWillBeSentEvent.requestId, request);
|
||||
|
||||
if (requestPausedEvent && !requestPausedEvent.responseStatusCode && !requestPausedEvent.responseErrorReason) {
|
||||
if (requestPausedEvent) {
|
||||
// We will not receive extra info when intercepting the request.
|
||||
// Use the headers from the Fetch.requestPausedPayload and release the allHeaders()
|
||||
// right away, so that client can call it from the route handler.
|
||||
|
|
|
|||
Loading…
Reference in a new issue