-
-
Notifications
You must be signed in to change notification settings - Fork 148
Closed
Milestone
Description
We set the this.response.complete
after the response.push(null)
, which emits the end
event.
Therefore, I think the response.complete
is always false in the end
event.
IIUC the docs, it should be true:
https://nodejs.org/api/http.html#messagecomplete
I think we should switch these lines: https://github.com/mswjs/interceptors/blob/main/src/interceptors/ClientRequest/NodeClientRequest.ts#L489-L490
kettanaito, mvantellingen, davidweterings and alexfaxe
Metadata
Metadata
Assignees
Labels
No labels