mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
handle aborted responses in lens proxy (#4308)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
c37a8aee0a
commit
8846b5c96f
1 file changed
+4
@@ -146,6 +146,10 @@ export class LensProxy extends Singleton {
|
||||
res.flushHeaders();
|
||||
}
|
||||
}
|
||||
|
||||
proxyRes.on("aborted", () => { // happens when proxy target aborts connection
|
||||
res.end();
|
||||
});
|
||||
});
|
||||
|
||||
proxy.on("error", (error, req, res, target) => {
|
||||
|
||||
Reference in new issue
Block a user