solve some back end bugs
This commit is contained in:
10 files changed
+207
-282
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user