Rename some call sites for read_headers.

Fixes tests.
This commit is contained in:
Jacob Hoffman-Andrews
2020-11-15 13:34:15 -08:00
committed by Martin Algesten
parent f652a9e449
commit 4cb856196e
4 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ use super::super::*;
// Send an HTTP response on the TcpStream at a rate of two bytes every 10
// milliseconds, for a total of 600 bytes.
fn dribble_body_respond(mut stream: TcpStream, contents: &[u8]) -> io::Result<()> {
read_headers(&stream);
read_request(&stream);
let headers = format!(
"HTTP/1.1 200 OK\r\nContent-Length: {}\r\n\r\n",
contents.len() * 2