more updates

This commit is contained in:
Henrique Dias 2017-06-19 18:23:57 +01:00
parent af4aaf07df
commit 8c19eda25f
No known key found for this signature in database
GPG key ID: 936F5EB68D786730
16 changed files with 79 additions and 83 deletions

View file

@ -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 {