diff --git a/src/client/writer.rs b/src/client/writer.rs index 18c74af8d..20a743c63 100644 --- a/src/client/writer.rs +++ b/src/client/writer.rs @@ -110,10 +110,11 @@ impl HttpClientWriter { self.flags.insert(Flags::UPGRADE); } - let path = msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or(""); // status line let _ = write!(buffer, "{} {} {:?}\r\n", - msg.method(), path, msg.version()); + msg.method(), + msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or(""), + msg.version()); // write headers for (key, value) in msg.headers() {