diff options
Diffstat (limited to 'tests/common/git_server.rs')
| -rw-r--r-- | tests/common/git_server.rs | 2 |
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. |
| 285 | fn guess_content_type(path: &PathBuf) -> &'static str { | 285 | fn 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" { |