From 38080f67b38fb4cddd11d0b3bde4159957979b27 Mon Sep 17 00:00:00 2001 From: Glade Miller Date: Tue, 13 Mar 2018 13:35:11 -0600 Subject: [PATCH] If no path is available from the URI request / --- src/client/writer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/writer.rs b/src/client/writer.rs index 20a743c63..a3692358f 100644 --- a/src/client/writer.rs +++ b/src/client/writer.rs @@ -113,7 +113,7 @@ impl HttpClientWriter { // status line let _ = write!(buffer, "{} {} {:?}\r\n", msg.method(), - msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or(""), + msg.uri().path_and_query().map(|u| u.as_str()).unwrap_or("/"), msg.version()); // write headers