Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Firstyear/opensuse-proxy-cache
/ normalise_path
Function
normalise_path
opensuse-proxy-cache/src/main.rs:125–128 ·
view source on GitHub ↗
(req_path: &str)
Source
from the content-addressed store, hash-verified
123
}
124
125
fn normalise_path(req_path: &str) -> PathBuf {
126
// let req_path = format!(
"/{}"
, req_path.replace(
"//"
,
"/"
));
127
PathBuf::from(req_path)
128
}
129
130
#[instrument(skip_all)]
131
async fn head_view(
Callers
2
head_view
Function · 0.85
get_view
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected