From 97feb661893dff86c03263d691b2b1865f81effe Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Thu, 15 Jan 2026 00:35:37 -0800 Subject: [PATCH] Double the hardcoded max http header count (#26130) ### What does this PR do? Doubles the hardcoded max http header count ### How did you verify your code works? ci (?) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- packages/bun-uws/src/HttpParser.h | 2 +- test/js/node/http/node-http-agent-tls-options.test.mts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/bun-uws/src/HttpParser.h b/packages/bun-uws/src/HttpParser.h index 8f4bf5e27a..ab528b963f 100644 --- a/packages/bun-uws/src/HttpParser.h +++ b/packages/bun-uws/src/HttpParser.h @@ -18,7 +18,7 @@ #pragma once #ifndef UWS_HTTP_MAX_HEADERS_COUNT -#define UWS_HTTP_MAX_HEADERS_COUNT 100 +#define UWS_HTTP_MAX_HEADERS_COUNT 200 #endif // todo: HttpParser is in need of a few clean-ups and refactorings diff --git a/test/js/node/http/node-http-agent-tls-options.test.mts b/test/js/node/http/node-http-agent-tls-options.test.mts index 181040c3b9..d0b11f7b61 100644 --- a/test/js/node/http/node-http-agent-tls-options.test.mts +++ b/test/js/node/http/node-http-agent-tls-options.test.mts @@ -8,17 +8,16 @@ * the proxy tunnel to the target HTTPS server. */ +import { HttpsProxyAgent } from "https-proxy-agent"; import { once } from "node:events"; import { readFileSync } from "node:fs"; import http from "node:http"; import https from "node:https"; -import { createRequire } from "node:module"; import type { AddressInfo } from "node:net"; import net from "node:net"; import { dirname, join } from "node:path"; import { describe, test } from "node:test"; import { fileURLToPath } from "node:url"; -import { HttpsProxyAgent } from "https-proxy-agent"; const __dirname = dirname(fileURLToPath(import.meta.url));