请求源站错误时增加503、504错误

This commit is contained in:
刘祥超
2021-09-01 08:48:03 +08:00
parent dfb0e60acc
commit 699cea4382
8 changed files with 35 additions and 42 deletions

View File

@@ -121,7 +121,7 @@ func (this *HTTPRequest) Do() {
// Web配置
err := this.configureWeb(this.Server.Web, true, 0)
if err != nil {
this.write500(err)
this.write50x(err, http.StatusInternalServerError)
this.doEnd()
return
}