{"action":"created","issue":{"url":"https://api.github.com/repos/mirage/ocaml-uri/issues/72","labels_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/72/comments","events_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/72/events","html_url":"https://github.com/mirage/ocaml-uri/issues/72","id":70269432,"number":72,"title":"path depends on whether there is a host or not","user":{"login":"Drup","id":801124,"avatar_url":"https://avatars.githubusercontent.com/u/801124?v=3","gravatar_id":"","url":"https://api.github.com/users/Drup","html_url":"https://github.com/Drup","followers_url":"https://api.github.com/users/Drup/followers","following_url":"https://api.github.com/users/Drup/following{/other_user}","gists_url":"https://api.github.com/users/Drup/gists{/gist_id}","starred_url":"https://api.github.com/users/Drup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drup/subscriptions","organizations_url":"https://api.github.com/users/Drup/orgs","repos_url":"https://api.github.com/users/Drup/repos","events_url":"https://api.github.com/users/Drup/events{/privacy}","received_events_url":"https://api.github.com/users/Drup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-23T00:32:40Z","updated_at":"2015-04-23T12:54:52Z","closed_at":null,"body":"```ocaml\r\n# Uri.path @@ Uri.make ~host:\"bla.com\" ~path:\"\" () ;;\r\n- : bytes = \"\"\r\n# Uri.path @@ Uri.make ~host:\"bla.com\" ~path:\"/\" () ;;\r\n- : bytes = \"/\"\r\n# Uri.path @@ Uri.make ~host:\"bla.com\" ~path:\"foo/\" () ;;\r\n- : bytes = \"/foo/\"\r\n# Uri.path @@ Uri.make ~path:\"\" () ;;\r\n- : bytes = \"\"\r\n# Uri.path @@ Uri.make ~path:\"/\" () ;;\r\n- : bytes = \"/\" \r\n# Uri.path @@ Uri.make ~path:\"foo/\" () ;;\r\n- : bytes = \"foo/\"\r\n```\r\n\r\nI guess it's expected, but it's very annoying, since it forces to reimplement some path handling out of uri. I suppose it's related to https://github.com/mirage/ocaml-uri/issues/53"},"comment":{"url":"https://api.github.com/repos/mirage/ocaml-uri/issues/comments/95576062","html_url":"https://github.com/mirage/ocaml-uri/issues/72#issuecomment-95576062","issue_url":"https://api.github.com/repos/mirage/ocaml-uri/issues/72","id":95576062,"user":{"login":"Drup","id":801124,"avatar_url":"https://avatars.githubusercontent.com/u/801124?v=3","gravatar_id":"","url":"https://api.github.com/users/Drup","html_url":"https://github.com/Drup","followers_url":"https://api.github.com/users/Drup/followers","following_url":"https://api.github.com/users/Drup/following{/other_user}","gists_url":"https://api.github.com/users/Drup/gists{/gist_id}","starred_url":"https://api.github.com/users/Drup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drup/subscriptions","organizations_url":"https://api.github.com/users/Drup/orgs","repos_url":"https://api.github.com/users/Drup/repos","events_url":"https://api.github.com/users/Drup/events{/privacy}","received_events_url":"https://api.github.com/users/Drup/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T12:54:52Z","updated_at":"2015-04-23T12:54:52Z","body":"Well, it forces me to do segmentation by / with some handling of \"does it starts or end with /, if yes, do this special thing\". If uri exported a `string list` of the path components, I would not have to."}}