remove requestCtx.forward

This commit is contained in:
David Reed 2022-11-19 19:11:41 -05:00
parent 17c5b6b7b7
commit edb339b137
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F

View file

@ -114,16 +114,6 @@ class UVServiceWorker extends EventEmitter {
false false
); );
if (
this.browser === 'Firefox' &&
!(
request.destination === 'iframe' ||
request.destination === 'document'
)
) {
requestCtx.forward.shift();
}
requestCtx.headers['user-agent'] = navigator.userAgent; requestCtx.headers['user-agent'] = navigator.userAgent;
if (cookieStr) requestCtx.headers.cookie = cookieStr; if (cookieStr) requestCtx.headers.cookie = cookieStr;