Fix XHR hook partial response handling.

This commit is contained in:
Daylin Cooper 2023-09-18 23:39:17 -07:00 committed by Raymond Hill
parent 1552f9dd84
commit 321aec41a7
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1365,6 +1365,10 @@ function jsonPruneXhrResponse(
if ( xhrDetails === undefined ) {
return innerResponse;
}
if ( xhrDetails.latestResponseLength != innerResponse.length ) {
xhrDetails.response = undefined;
xhrDetails.latestResponseLength = innerResponse.length;
}
if ( xhrDetails.response !== undefined ) {
return xhrDetails.response;
}