Skip to content

Commit

Permalink
Merge pull request #257 from pzol/master
Browse files Browse the repository at this point in the history
Increase MAX_HEADER_FIELD_LENGTH to 4k
  • Loading branch information
reem committed Jan 19, 2015
2 parents 8bf551b + 54238b2 commit 04f8830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ pub fn read_http_version<R: Reader>(stream: &mut R) -> HttpResult<HttpVersion> {
}

const MAX_HEADER_NAME_LENGTH: usize = 100;
const MAX_HEADER_FIELD_LENGTH: usize = 1000;
const MAX_HEADER_FIELD_LENGTH: usize = 4096;

/// The raw bytes when parsing a header line.
///
Expand Down

0 comments on commit 04f8830

Please sign in to comment.