Received: from tilde.team (tilde.team [167.114.7.65]) by mail-b.sr.ht (Postfix) with ESMTPS id 6C326FF128 for <~int80h/public-inbox@lists.sr.ht>; Wed, 25 Nov 2020 09:49:10 +0000 (UTC) Authentication-Results: mail-b.sr.ht; dkim=pass (1024-bit key) header.d=tilde.team header.i=@tilde.team header.b=mbkxaJUi Received: by tilde.team (Postfix, from userid 1067) id E6D5E4C151F; Wed, 25 Nov 2020 09:49:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.team; s=mail; t=1606297749; bh=flh/Fd1xfrzISY6UaJXRmha8gOzPs/ylZqdzxzmxg48=; h=From:To:Date:Subject:From; b=mbkxaJUia6l6Mzxb8Cq37XDJfBNYZlp/3FCTy5cDbsE7rp4G3pLhRAKePWiVVdc3Z km95k5YHojvw6iA7YAw3WyP502RnIoDe+J6FPfpOQtKRc+BpG7mrg2e6sxtUF831Mj BaHpIn/vc1JDekqc36umXBcgQCSaDxe8p1/N9Pqs= From: khuxkm fbexl To: ~int80h/public-inbox@lists.sr.ht Date: Wed, 25 Nov 2020 09:12:22 +0000 Subject: [PATCH gemserv] Don't append a slash to file paths Message-Id: <20201125094909.E6D5E4C151F@tilde.team> this should fix file paths in directory listings not working --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a32ebf2..3488217 100644 --- a/src/main.rs +++ b/src/main.rs @@ -99,7 +99,7 @@ async fn get_content(path: PathBuf, u: url::Url) -> Result { if m.is_dir() { dirs.push(format!("=> {}/ {}/\r\n", ep, p.display())); } else { - files.push(format!("=> {}/ {}\r\n", ep, p.display())); + files.push(format!("=> {} {}\r\n", ep, p.display())); } } } -- 2.25.1