Skip to content

Commit

Permalink
404 on illegal package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuihtlauac ALVARADO committed Sep 6, 2024
1 parent 92f6dee commit 48d120d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocamlorg_web/lib/handler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ let packages_autocomplete_fragment t req =
| _ -> Dream.html ""

let package_overview t kind req =
let name = Ocamlorg_package.Name.of_string @@ Dream.param req "name" in
let</>? name = try Some (Ocamlorg_package.Name.of_string @@ Dream.param req "name") with _ -> None in
let version_from_url = Dream.param req "version" in
let</>? package, frontend_package =
Package_helper.of_name_version t name version_from_url
Expand Down

0 comments on commit 48d120d

Please sign in to comment.