Fix XHR hook partial response handling.

This commit is contained in:
Daylin Cooper 2023-09-18 23:39:17 -07:00 committed by GitHub
parent 54dc0cd32d
commit ce959164bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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;
}