upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/common/git_server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/git_server.rs')
-rw-r--r--tests/common/git_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common/git_server.rs b/tests/common/git_server.rs
index d0d727e..9fb62df 100644
--- a/tests/common/git_server.rs
+++ b/tests/common/git_server.rs
@@ -282,7 +282,7 @@ fn is_safe_path(path: &Path, repo_path: &Path) -> bool {
282} 282}
283 283
284/// Guess the content type for a git-related file. 284/// Guess the content type for a git-related file.
285fn guess_content_type(path: &PathBuf) -> &'static str { 285fn guess_content_type(path: &Path) -> &'static str {
286 let filename = path.file_name().and_then(|n| n.to_str()).unwrap_or(""); 286 let filename = path.file_name().and_then(|n| n.to_str()).unwrap_or("");
287 287
288 if filename == "info/refs" || filename == "refs" { 288 if filename == "info/refs" || filename == "refs" {