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:
parent
ff119dabf7
commit
51a93b8cc0
@ -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();
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user