实现Web静态文件分发

This commit is contained in:
刘祥超
2020-09-26 11:22:21 +08:00
parent c34459db16
commit fce13eccd6
8 changed files with 323 additions and 35 deletions

View File

@@ -36,7 +36,7 @@ func (this *HTTPRequest) doURL(method string, url string, host string, statusCod
if err != nil {
logs.Error(errors.New(req.URL.String() + ": " + err.Error()))
this.addError(err)
this.writeInternalServerError()
this.write500()
return
}
defer func() {