优化代码

This commit is contained in:
GoEdgeLab
2023-09-07 15:10:05 +08:00
parent a362eb0f4c
commit fda85d706c

View File

@@ -72,7 +72,7 @@ func (this *HTTPRequest) doMismatch() {
}
// 处理当前连接
if mismatchAction != nil && mismatchAction.Code == "page" {
if mismatchAction != nil && mismatchAction.Code == serverconfigs.DomainMismatchActionPage {
if mismatchAction.Options != nil {
this.writer.statusCode = statusCode
var contentHTML = this.Format(mismatchAction.Options.GetString("contentHTML"))