mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Generate new Response when no match in trusted-replace-fetch-response
scriptlet
Somehow, sending the original Response instance causes issues.
This commit is contained in:
parent
5ee00a6b68
commit
1762ea3950
@ -3424,7 +3424,6 @@ function trustedReplaceFetchResponse(
|
|||||||
`\n\treplacement: ${replacement}`,
|
`\n\treplacement: ${replacement}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ( textAfter === textBefore ) { return responseBefore; }
|
|
||||||
const responseAfter = new Response(textAfter, {
|
const responseAfter = new Response(textAfter, {
|
||||||
status: responseBefore.status,
|
status: responseBefore.status,
|
||||||
statusText: responseBefore.statusText,
|
statusText: responseBefore.statusText,
|
||||||
|
Loading…
Reference in New Issue
Block a user