Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
allow up to 64 headers in requests and responses
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarneges committed Apr 14, 2022
1 parent 540ca41 commit a4af362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ use std::task::Poll;
use std::time::Duration;

const URI_SIZE_MAX: usize = 4096;
const HEADERS_MAX: usize = 32;
const HEADERS_MAX: usize = 64;
const WS_HASH_INPUT_MAX: usize = 256;
const WS_ACCEPT_MAX: usize = 28; // base64_encode(sha1_hash) = 28 bytes
const ZHTTP_SESSION_TIMEOUT: Duration = Duration::from_secs(60);
Expand Down
2 changes: 1 addition & 1 deletion src/zhttppacket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use std::str;

pub const IDS_MAX: usize = 128;

const HEADERS_MAX: usize = 32;
const HEADERS_MAX: usize = 64;

const EMPTY_BYTES: &[u8] = b"";

Expand Down

0 comments on commit a4af362

Please sign in to comment.