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(); });