mirror of https://github.com/gorhill/uBlock.git
Fix XHR hook partial response handling.
This commit is contained in:
parent
54dc0cd32d
commit
ce959164bb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue