mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 11:42:57 +00:00
fix filemanager.go
This commit is contained in:
parent
4a19c6d5e3
commit
de1596e13d
@ -45,7 +45,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
|
|||||||
assets = httpserver.Path(r.URL.Path).Matches(c.BaseURL + a.BaseURL)
|
assets = httpserver.Path(r.URL.Path).Matches(c.BaseURL + a.BaseURL)
|
||||||
|
|
||||||
if r.Method != http.MethodPost && !assets {
|
if r.Method != http.MethodPost && !assets {
|
||||||
fi, code, err = GetFileInfo(r.URL, c)
|
fi, code, err = file.GetInfo(r.URL, c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return code, err
|
return code, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user