We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b6cef5 commit 66c8427Copy full SHA for 66c8427
src/server/encode.rs
@@ -81,7 +81,7 @@ impl Encoder {
81
82
/// Encode the headers to a buffer, the first time we poll.
83
fn compute_head(&mut self) -> io::Result<Cursor<Vec<u8>>> {
84
- let mut head = Vec::with_capacity(100);
+ let mut head = Vec::with_capacity(128);
85
let reason = self.response.status().canonical_reason();
86
let status = self.response.status();
87
write!(head, "HTTP/1.1 {} {}\r\n", status, reason)?;
0 commit comments