From 7222931b24884d3b03bf9fa87d974833503870e5 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Sun, 21 Feb 2021 20:05:40 +0100 Subject: [PATCH] Update src/response.rs Co-authored-by: Jacob Hoffman-Andrews --- src/response.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/response.rs b/src/response.rs index 4ffe496..8ea1a5a 100644 --- a/src/response.rs +++ b/src/response.rs @@ -477,7 +477,7 @@ fn parse_status_line(line: &str) -> Result<(ResponseStatusIndex, u16), Error> { // status-line = HTTP-version SP status-code SP reason-phrase CRLF let mut split: Vec<&str> = line.splitn(3, ' ').collect(); if split.len() == 2 { - // As a special case, we are lenient parsing lines without reason phrase. + // As a special case, we are lenient parsing lines without a space after the code. // This is technically against spec. "HTTP/1.1 200\r\n" split.push(""); }