Skip to content
Snippets Groups Projects
Commit ca15ad69 authored by Andre Maroneze's avatar Andre Maroneze Committed by Virgile Prevosto
Browse files

[Filepath] robustify to_base_uri

parent 17b9a5b7
No related branches found
No related tags found
No related merge requests found
...@@ -286,7 +286,9 @@ module Normalized = struct ...@@ -286,7 +286,9 @@ module Normalized = struct
Buffer.contents buf in Buffer.contents buf in
let uri = let uri =
try try
String.sub uri 1 (String.length uri - 1) if String.get uri 0 = '/' then
String.sub uri 1 (String.length uri - 1)
else uri
with Invalid_argument _ -> uri with Invalid_argument _ -> uri
in in
res, uri res, uri
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment