Commit 7244512
committed
script/serve-public.js: handle all URLs ending in a slash correctly
There is already code to handle the top-level URL correctly. However,
URLs like http://localhost:5000/book/ still weren't handled by appending
`index.html`. Let's fix this.
This is needed because we are _just_ about to add tests to verify that
the book redirects at URLs like https://git-scm.com/book/ work.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 88b0251 commit 7244512
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
0 commit comments