diff --git a/src/response.rs b/src/response.rs index 1f7fc15..b635a95 100644 --- a/src/response.rs +++ b/src/response.rs @@ -109,7 +109,7 @@ impl Response { /// # } /// ``` pub fn new(status: u16, status_text: &str, body: &str) -> Result { - let r = format!("HTTP/1.1 {} {}\r\n\r\n{}\n", status, status_text, body); + let r = format!("HTTP/1.1 {} {}\r\n\r\n{}", status, status_text, body); (r.as_ref() as &str).parse() }