export baseURL again -_-

This commit is contained in:
Henrique Dias
2017-06-25 15:49:24 +01:00
parent 3ac186305d
commit ab9cf62450
7 changed files with 23 additions and 21 deletions

View File

@@ -77,7 +77,7 @@ func command(w http.ResponseWriter, r *http.Request, c *FileManager, u *User) (i
}
// Gets the path and initializes a buffer.
path := strings.Replace(r.URL.Path, c.baseURL, c.scope, 1)
path := strings.Replace(r.URL.Path, c.BaseURL, c.scope, 1)
path = filepath.Clean(path)
buff := new(bytes.Buffer)