Ready to add the file downloader.

This commit is contained in:
zicla
2018-07-02 20:41:56 +08:00
parent bffc45535d
commit 1453d1a84b
3 changed files with 129 additions and 103 deletions

View File

@ -116,7 +116,7 @@ func (this *Router) ServeHTTP(writer http.ResponseWriter, request *http.Request)
filePath = dir + "/index.html"
exists, _ = PathExists(filePath)
if !exists {
panic(fmt.Sprintf("404 not found:%s", requestURI))
panic(fmt.Sprintf("404 not found:%s", filePath))
}
}