请求源站错误时增加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

@@ -33,7 +33,7 @@ func (this *HTTPRequest) doAuth() (shouldStop bool) {
return writer.StatusCode(), nil
}, this.Format)
if err != nil {
this.write502(err)
this.write50x(err, http.StatusInternalServerError)
return
}
if b {