mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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);
|
this._requestIdToRequest.set(requestWillBeSentEvent.requestId, request);
|
||||||
|
|
||||||
if (requestPausedEvent && !requestPausedEvent.responseStatusCode && !requestPausedEvent.responseErrorReason) {
|
if (requestPausedEvent) {
|
||||||
// We will not receive extra info when intercepting the request.
|
// We will not receive extra info when intercepting the request.
|
||||||
// Use the headers from the Fetch.requestPausedPayload and release the allHeaders()
|
// Use the headers from the Fetch.requestPausedPayload and release the allHeaders()
|
||||||
// right away, so that client can call it from the route handler.
|
// right away, so that client can call it from the route handler.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user