diff --git a/src/client/writer.rs b/src/client/writer.rs index 7cd522113..18c74af8d 100644 --- a/src/client/writer.rs +++ b/src/client/writer.rs @@ -110,9 +110,10 @@ 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(), msg.uri().path(), msg.version()); + msg.method(), path, msg.version()); // write headers for (key, value) in msg.headers() {