We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ddf1e commit 6c54341Copy full SHA for 6c54341
src/web/builds.rs
@@ -43,7 +43,11 @@ pub fn build_list_handler(req: &mut Request) -> IronResult<Response> {
43
let mut conn = extension!(req, Pool).get()?;
44
let limits = ctry!(req, Limits::for_crate(&mut conn, name));
45
46
- let is_json = req.url.path().last().map_or(false, |segment| segment.ends_with(".json"));
+ let is_json = req
47
+ .url
48
+ .path()
49
+ .last()
50
+ .map_or(false, |segment| segment.ends_with(".json"));
51
52
let version =
53
match match_version(&mut conn, name, req_version).and_then(|m| m.assume_exact())? {
@@ -58,7 +62,7 @@ pub fn build_list_handler(req: &mut Request) -> IronResult<Response> {
58
62
redirect_base(req),
59
63
name,
60
64
version,
61
- ext
65
+ ext,
66
)),
67
);
68
0 commit comments