mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
router fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
0c7c765469
commit
9f02c7826b
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -156,7 +156,7 @@ export class LensProxy {
|
||||
if (proxyTarget) {
|
||||
proxy.web(req, res, proxyTarget)
|
||||
} else {
|
||||
await this.router.route(cluster, req, res)
|
||||
this.router.route(cluster, req, res)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
+1
-1
@@ -96,8 +96,8 @@ export class Router {
|
||||
const type = mimeTypes[path.extname(asset).slice(1)] || "text/plain";
|
||||
response.setHeader("Content-Type", type);
|
||||
response.write(data)
|
||||
response.end()
|
||||
}
|
||||
response.end()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user