diff --git a/packages/reverse-proxy-service/src/server.ts b/packages/reverse-proxy-service/src/server.ts index 6395e2d27..7d139b8c1 100644 --- a/packages/reverse-proxy-service/src/server.ts +++ b/packages/reverse-proxy-service/src/server.ts @@ -13,15 +13,12 @@ import { COOKIE_SECRET } from './setup/env'; import oidcAuth from './middleware/oidcAuth'; import { updateApplicationCache } from './utils/applicationCache'; import http from 'http'; -import https from 'https'; declare module 'http' { interface Agent { maxHeaderSize?: number; } } -declare module 'https' { interface Agent { maxHeaderSize?: number; } } const MAX_HEADER_SIZE = 16 * 1024 * 1024; // 16MB ( http.globalAgent as http.Agent ).maxHeaderSize = MAX_HEADER_SIZE; -( https.globalAgent as https.Agent ).maxHeaderSize = MAX_HEADER_SIZE; const getServer = async () => { const server = express();