mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
ignore empty string in exact_path
This commit is contained in:
parent
613c9ae7c3
commit
8fc22ff07e
1 changed files with 1 additions and 0 deletions
|
|
@ -752,6 +752,7 @@ module Route = struct
|
|||
let exact_path (s:string) tail =
|
||||
let rec fn = function
|
||||
| [] -> tail
|
||||
| ""::ls -> fn ls
|
||||
| s::ls -> exact s @/ fn ls
|
||||
in
|
||||
fn (String.split_on_char '/' s)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue