Wrongly renamed something
This commit is contained in:
parent
1b29beec11
commit
8f389b5137
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue