Skip to content

Commit 71cd71f

Browse files
committed
cmd/skylight: strip MonitoringPrefix path from FileServerFS requests
Fixes #57
1 parent 893a6c2 commit 71cd71f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/skylight/skylight.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func main() {
311311
fatalError(logger, "failed to open local directory", "err", err)
312312
}
313313
roots[lc] = root
314-
handler := http.FileServerFS(root.FS())
314+
handler := http.StripPrefix(prefix.Path, http.FileServerFS(root.FS()))
315315

316316
// Wrap the file handler with duration and response size metrics.
317317
// Avoid tracking the size and duration of errors or simple responses.

0 commit comments

Comments
 (0)