Fix 404 not returning immediately in asset resolver (#4597)

This commit is contained in:
WithoutPants 2024-02-20 13:00:27 +11:00 committed by GitHub
parent b4a6cc43d1
commit 276bc5a8cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,7 @@ func (rs pluginRoutes) Assets(w http.ResponseWriter, r *http.Request) {
r.URL.Path, dir = p.UI.Assets.GetFilesystemLocation(r.URL.Path) r.URL.Path, dir = p.UI.Assets.GetFilesystemLocation(r.URL.Path)
if dir == "" { if dir == "" {
http.NotFound(w, r) http.NotFound(w, r)
return
} }
dir = filepath.Join(pluginDir, filepath.FromSlash(dir)) dir = filepath.Join(pluginDir, filepath.FromSlash(dir))