Fix #1635, trim slash when looking up resource files (#1637)

This commit is contained in:
ginabythebay 2022-12-31 21:46:44 -08:00 committed by GitHub
parent 328c536cf4
commit b2d3e64a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ func handleRobots(w http.ResponseWriter, r *http.Request) {
}
func (h *handler) handleUiFile(w http.ResponseWriter, r *http.Request) {
file := strings.TrimPrefix(r.URL.Path, "/ui")
file := strings.TrimPrefix(r.URL.Path, "/ui/")
root := h.uiFiles