From 51a93b8cc0b305c54e1eee7505ae9579b434bc99 Mon Sep 17 00:00:00 2001 From: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com> Date: Wed, 27 Apr 2022 11:56:07 -0400 Subject: [PATCH] reverting flushHeaders() fix to restore auto-refresh (#5283) 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(); });