diff options
author | Edward Wang <[email protected]> | 2024-06-25 11:38:15 -0700 |
---|---|---|
committer | Edward Wang <[email protected]> | 2024-06-28 12:34:25 -0700 |
commit | a483902c46fc43736fc5a27a5048b292493536b3 (patch) | |
tree | 465342b61ce9672a5a77ab9f2f9bc9e01067c0b8 /pingora-header-serde | |
parent | c67b5d0141af939827777c66e95fbb530ca14d33 (diff) | |
download | pingora-a483902c46fc43736fc5a27a5048b292493536b3.tar.gz pingora-a483902c46fc43736fc5a27a5048b292493536b3.zip |
Change max allowed resp headers in HeaderSerde to match H1 max
Currently the allowed max is hardcoded, the HeaderSerde should match the
H1 max count to avoid problems deserializing from cache.
Diffstat (limited to 'pingora-header-serde')
-rw-r--r-- | pingora-header-serde/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pingora-header-serde/src/lib.rs b/pingora-header-serde/src/lib.rs index 73b9b29..e78897a 100644 --- a/pingora-header-serde/src/lib.rs +++ b/pingora-header-serde/src/lib.rs @@ -131,7 +131,7 @@ fn resp_header_to_buf(resp: &ResponseHeader, buf: &mut Vec<u8>) -> usize { } // Should match pingora http1 setting -const MAX_HEADERS: usize = 160; +const MAX_HEADERS: usize = 256; #[inline] fn buf_to_http_header(buf: &[u8]) -> Result<ResponseHeader> { |