Remove spdy support (#6580)

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-11-17 13:02:47 -05:00
1 parent 1e91ddf824
commit 1b6f64c523
3 files changed
+2 -17

No files matched your search

+2 -8
View File
@@ -4,8 +4,7 @@
*/
import net from "net";
import type http from "http";
import spdy from "spdy";
import http from "http";
import type httpProxy from "http-proxy";
import { apiPrefix, apiKubePrefix } from "../../common/vars";
import type { Router } from "../router/router";
@@ -69,12 +68,7 @@ export class LensProxy {
constructor(private readonly dependencies: Dependencies) {
this.configureProxy(dependencies.proxy);
this.proxyServer = spdy.createServer({
spdy: {
plain: true,
protocols: ["http/1.1", "spdy/3.1"],
},
}, (req, res) => {
this.proxyServer = http.createServer((req, res) => {
this.handleRequest(req as ServerIncomingMessage, res);
});