mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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
1 changed files with 0 additions and 1 deletions
|
|
@ -3424,7 +3424,6 @@ function trustedReplaceFetchResponse(
|
|||
`\n\treplacement: ${replacement}`,
|
||||
);
|
||||
}
|
||||
if ( textAfter === textBefore ) { return responseBefore; }
|
||||
const responseAfter = new Response(textAfter, {
|
||||
status: responseBefore.status,
|
||||
statusText: responseBefore.statusText,
|
||||
|
|
|
|||
Loading…
Reference in a new issue