mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-28 18:23:38 +00:00
more updates
This commit is contained in:
parent
af4aaf07df
commit
8c19eda25f
16 changed files with 79 additions and 83 deletions
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
// serveSingle serves a single file in an editor (if it is editable), shows the
|
||||
// plain file, or downloads it if it can't be shown.
|
||||
func (c *Config) serveSingle(w http.ResponseWriter, r *http.Request, u *User, i *file) (int, error) {
|
||||
func (c *FileManager) serveSingle(w http.ResponseWriter, r *http.Request, u *User, i *fileInfo) (int, error) {
|
||||
var err error
|
||||
|
||||
if err = i.RetrieveFileType(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue