diff --git a/package.json b/package.json index 913a162ee3..375fc826ec 100644 --- a/package.json +++ b/package.json @@ -281,7 +281,6 @@ "rfc6902": "^4.0.2", "selfsigned": "^2.1.1", "semver": "^7.3.8", - "spdy": "^4.0.2", "tar": "^6.1.12", "tcp-port-used": "^1.0.2", "tempy": "1.0.1", @@ -349,7 +348,6 @@ "@types/request-promise-native": "^1.0.18", "@types/semver": "^7.3.13", "@types/sharp": "^0.31.0", - "@types/spdy": "^3.4.5", "@types/tar": "^6.1.3", "@types/tar-stream": "^2.2.2", "@types/tcp-port-used": "^1.0.1", diff --git a/src/main/lens-proxy/lens-proxy.ts b/src/main/lens-proxy/lens-proxy.ts index d96c9b4919..5dc2794299 100644 --- a/src/main/lens-proxy/lens-proxy.ts +++ b/src/main/lens-proxy/lens-proxy.ts @@ -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); }); diff --git a/yarn.lock b/yarn.lock index 687457dbc8..e388b958d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2459,13 +2459,6 @@ resolved "https://registry.yarnpkg.com/@types/source-list-map/-/source-list-map-0.1.2.tgz#0078836063ffaf17412349bba364087e0ac02ec9" integrity sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA== -"@types/spdy@^3.4.5": - version "3.4.5" - resolved "https://registry.yarnpkg.com/@types/spdy/-/spdy-3.4.5.tgz#194dc132312ddcd31e8053789ae83a7bb32a8aaf" - integrity sha512-/33fIRK/aqkKNxg9BSjpzt1ucmvPremgeDywm9z2C2mOlIh5Ljjvgc3UhQHqwXsSLDLHPT9jlsnrjKQ1XiVJzA== - dependencies: - "@types/node" "*" - "@types/stack-utils@^2.0.0": version "2.0.1" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"