实现Web静态文件分发

This commit is contained in:
GoEdgeLab
2020-09-26 11:22:21 +08:00
parent 320ed5a1b6
commit fb786059b3
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() {