diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-04-21 03:01:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 07:31:23 +0530 |
commit | 14ae4f897f3c92fd8f2d4ac06ce7fb3015071d2b (patch) | |
tree | e06f54627617666e258ba836985c4ae07fdfa3be /ext/node/polyfills/http.ts | |
parent | 98e2f6d50b6b0e077a1fae99ee77ed5ce7f33aef (diff) |
fix(ext/node): define http.maxHeaderSize (#23479)
Closes https://github.com/denoland/deno/issues/23432
Diffstat (limited to 'ext/node/polyfills/http.ts')
-rw-r--r-- | ext/node/polyfills/http.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts index 67981e8de..ceaf7aeb8 100644 --- a/ext/node/polyfills/http.ts +++ b/ext/node/polyfills/http.ts @@ -1820,6 +1820,8 @@ export function get(...args: any[]) { return req; } +export const maxHeaderSize = 16_384; + export { Agent, ClientRequest, @@ -1848,4 +1850,5 @@ export default { get, validateHeaderName, validateHeaderValue, + maxHeaderSize, }; |