mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
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:
@@ -18,7 +18,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef UWS_HTTP_MAX_HEADERS_COUNT
|
#ifndef UWS_HTTP_MAX_HEADERS_COUNT
|
||||||
#define UWS_HTTP_MAX_HEADERS_COUNT 100
|
#define UWS_HTTP_MAX_HEADERS_COUNT 200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// todo: HttpParser is in need of a few clean-ups and refactorings
|
// todo: HttpParser is in need of a few clean-ups and refactorings
|
||||||
|
|||||||
@@ -8,17 +8,16 @@
|
|||||||
* the proxy tunnel to the target HTTPS server.
|
* the proxy tunnel to the target HTTPS server.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { HttpsProxyAgent } from "https-proxy-agent";
|
||||||
import { once } from "node:events";
|
import { once } from "node:events";
|
||||||
import { readFileSync } from "node:fs";
|
import { readFileSync } from "node:fs";
|
||||||
import http from "node:http";
|
import http from "node:http";
|
||||||
import https from "node:https";
|
import https from "node:https";
|
||||||
import { createRequire } from "node:module";
|
|
||||||
import type { AddressInfo } from "node:net";
|
import type { AddressInfo } from "node:net";
|
||||||
import net from "node:net";
|
import net from "node:net";
|
||||||
import { dirname, join } from "node:path";
|
import { dirname, join } from "node:path";
|
||||||
import { describe, test } from "node:test";
|
import { describe, test } from "node:test";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
||||||
|
|
||||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user