From 1bfd751727ec2dac052c213ac86a4a9d82ef64cc Mon Sep 17 00:00:00 2001 From: Piotr Date: Tue, 21 Feb 2023 13:01:29 +0100 Subject: [PATCH] fix(worker): remove bypassing of server-sent events (#1551) Remove server-sent events bypass --- src/mockServiceWorker.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mockServiceWorker.js b/src/mockServiceWorker.js index dbb531195..accd59acf 100644 --- a/src/mockServiceWorker.js +++ b/src/mockServiceWorker.js @@ -88,11 +88,6 @@ self.addEventListener('fetch', function (event) { const { request } = event const accept = request.headers.get('accept') || '' - // Bypass server-sent events. - if (accept.includes('text/event-stream')) { - return - } - // Bypass navigation requests. if (request.mode === 'navigate') { return