Wrongly renamed something

This commit is contained in:
flyingscorpio@clevo 2023-01-09 08:00:17 +01:00
parent 1b29beec11
commit 8f389b5137

View file

@ -82,9 +82,9 @@ impl Ear {
/// Reads a stream in a buffer and extracts the first line.
fn extract_first_line_of_request(mut stream: &TcpStream) -> Option<String> {
let buf_reader = BufReader::new(&mut stream);
let http_method = buf_reader.lines().next()?;
match http_method {
Ok(http_method) => Some(http_method),
let http_request = buf_reader.lines().next()?;
match http_request {
Ok(http_request) => Some(http_request),
Err(_) => None,
}
}