1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

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

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