From efcd951477b1fb78589898e5a47e338a58c3519c Mon Sep 17 00:00:00 2001 From: Jim Ehrismann Date: Tue, 26 Apr 2022 17:15:46 -0400 Subject: [PATCH] reverting flushHeaders() fix to restore auto-refresh Signed-off-by: Jim Ehrismann --- src/main/lens-proxy.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/lens-proxy.ts b/src/main/lens-proxy.ts index f37b7a087c..945c7269e8 100644 --- a/src/main/lens-proxy.ts +++ b/src/main/lens-proxy.ts @@ -173,15 +173,6 @@ export class LensProxy extends Singleton { this.retryCounters.delete(retryCounterId); } - if (!res.headersSent && req.url) { - const url = new URL(req.url, "http://localhost"); - - if (url.searchParams.has("watch")) { - res.statusCode = proxyRes.statusCode; - res.flushHeaders(); - } - } - proxyRes.on("aborted", () => { // happens when proxy target aborts connection res.end(); });