mirror of https://github.com/gorhill/uBlock.git
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}`,
|
||||
);
|
||||
}
|
||||
if ( textAfter === textBefore ) { return responseBefore; }
|
||||
const responseAfter = new Response(textAfter, {
|
||||
status: responseBefore.status,
|
||||
statusText: responseBefore.statusText,
|
||||
|
|
Loading…
Reference in New Issue