This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Commit 2bd126d
committed
bundle-server: serve correct bundle routes for request
Update 'bundleServer.serve()' to serve the correct bundle list file for the
request URI. If the URI has no trailing slash (e.g.
'https://<host>:<port>/<org>/<repo>'), serve the 'repo-bundle-list' file
contents, which prepends '<repo>' to the relative bundle paths. If the URI
has a trailing slash, serve 'bundle-list' as normal.
Also, prevent users from directly reading 'bundle-list' and
'repo-bundle-list' based on the URI; the latter's relative paths would be
incorrect, and in general these files are an internal implementation detail
that should not be visible to users. If a user requests one of these files,
return a 404.
Signed-off-by: Victoria Dye <vdye@github.com>1 parent 03cf2a0 commit 2bd126d
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
105 | 119 | | |
106 | 120 | | |
107 | 121 | | |
| |||
0 commit comments