Skip to content

Commit 66c8427

Browse files
committed
also use a guess of 128 bytes on the server
1 parent 4b6cef5 commit 66c8427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Encoder {
8181

8282
/// Encode the headers to a buffer, the first time we poll.
8383
fn compute_head(&mut self) -> io::Result<Cursor<Vec<u8>>> {
84-
let mut head = Vec::with_capacity(100);
84+
let mut head = Vec::with_capacity(128);
8585
let reason = self.response.status().canonical_reason();
8686
let status = self.response.status();
8787
write!(head, "HTTP/1.1 {} {}\r\n", status, reason)?;

0 commit comments

Comments
 (0)