From 2ffc8ff0ccb0bfad7d69104cbc00b167589c780b Mon Sep 17 00:00:00 2001 From: Jan Wolff Date: Tue, 26 May 2020 06:49:20 +0200 Subject: correctly adhere to spec in most request cases --- src/server/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/mod.rs') diff --git a/src/server/mod.rs b/src/server/mod.rs index 9909fd2..a38e194 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -24,7 +24,7 @@ pub struct ServerConfig { impl ServerConfig { pub fn new() -> ServerConfig { ServerConfig { - default_host: Url::parse("gemini://localhost").unwrap(), + default_host: Url::parse("gemini://localhost/").unwrap(), gem_root: PathBuf::from(""), addrs: Vec::new(), user: unistd::getuid(), @@ -35,7 +35,7 @@ impl ServerConfig { } pub fn set_default_host(&mut self, default_host: String) { - let mut url = Url::parse("gemini://default").unwrap(); + let mut url = Url::parse("gemini://default/").unwrap(); match url.set_host(Some(default_host.as_str())) { Ok(_) => {} -- cgit v1.2.3