1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

reverting flushHeaders() fix to restore auto-refresh (#5283)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann 2022-04-27 11:56:07 -04:00 committed by GitHub
parent ff119dabf7
commit 51a93b8cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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