reverting flushHeaders() fix to restore auto-refresh

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann committed 2022-04-26 17:15:46 -04:00
1 parent a09ceacfd2
commit efcd951477
1 file changed
-9
-9
View File
@@ -173,15 +173,6 @@ export class LensProxy extends Singleton {
this.retryCounters.delete(retryCounterId); 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 proxyRes.on("aborted", () => { // happens when proxy target aborts connection
res.end(); res.end();
}); });