This commit is contained in:
Henrique Dias
2016-07-05 17:49:15 +01:00
parent 37c77a3cee
commit 7743b56f05
2 changed files with 5 additions and 6 deletions

View File

@@ -8,7 +8,6 @@
package filemanager
import (
"fmt"
"io"
"io/ioutil"
"log"
@@ -75,8 +74,8 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
return assets.Serve(w, r, c)
}
// Generate anti security token
c.GenerateToken()
fmt.Println(c.Token)
if !fi.IsDir {
query := r.URL.Query()