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>
This commit is contained in:
Alistair Smith
2026-01-15 00:35:37 -08:00
committed by GitHub
parent 8466f12671
commit 97feb66189
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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));