Skip to content

Commit

Permalink
bug: double amount of allowed headers
Browse files Browse the repository at this point in the history
Increasing number of security headers pushed the total over the very
limited 16

Closes #136
  • Loading branch information
jrconlin committed Apr 6, 2020
1 parent 38ef9c0 commit 6703381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopush/src/server/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl Future for Dispatch {
return Err("early eof".into());
}
let ty = {
let mut headers = [httparse::EMPTY_HEADER; 16];
let mut headers = [httparse::EMPTY_HEADER; 32];
let mut req = httparse::Request::new(&mut headers);
match req.parse(&self.data)? {
httparse::Status::Complete(_) => {}
Expand Down

0 comments on commit 6703381

Please sign in to comment.