solve some back end bugs

This commit is contained in:
Henrique Dias committed 2017-06-29 10:17:35 +01:00
1 parent 193adea6bb
commit 2819ab24b8
10 files changed
+207 -282

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ const assetsURL = "/_"
type requestContext struct {
us *User
fm *FileManager
fi *fileInfo
fi *file
pg *page
}
@@ -82,7 +82,7 @@ func serveHTTP(c *requestContext, w http.ResponseWriter, r *http.Request) (int,
}
if r.Method == http.MethodGet {
var f *fileInfo
var f *file
// Obtains the information of the directory/file.
f, err = getInfo(r.URL, c.fm, c.us)