mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
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.
This commit is contained in:
parent
c70c904b50
commit
bb679da450
2 changed files with 2 additions and 2 deletions
2
.bleep
2
.bleep
|
@ -1 +1 @@
|
|||
8f4c536768b4ed3720cc4a6e651d0ed519aa6a60
|
||||
a3c90366d4cf12236bba71d5f95289e220efcdae
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue