We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b87723f commit b77069bCopy full SHA for b77069b
src/web/rustdoc.rs
@@ -229,7 +229,11 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
229
// expects a req_path that looks like `/rustdoc/:crate/:version[/:target]/.*`
230
let crate_details = cexpect!(CrateDetails::new(&conn, &name, &version));
231
if req_path[3] == crate_details.metadata.default_target {
232
- let path = [base, req_path[1..3].join("/"), req_path[4..].join("/")].join("/");
+ let path = [
233
+ base,
234
+ req_path[1..3].join("/"),
235
+ req_path[4..].join("/")
236
+ ].join("/");
237
let canonical = Url::parse(&path).expect("got an invalid URL to start");
238
return Ok(super::redirect(canonical));
239
}
0 commit comments