mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 17:40:26 +08:00
修复临时关闭页面内容切换到HTML无法使用的问题
This commit is contained in:
@@ -17,12 +17,13 @@ func (this *HTTPRequest) doShutdown() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if urlPrefixRegexp.MatchString(shutdown.URL) { // URL
|
if len(shutdown.BodyType) == 0 || shutdown.BodyType == shared.BodyTypeURL {
|
||||||
|
// URL
|
||||||
|
if urlPrefixRegexp.MatchString(shutdown.URL) {
|
||||||
this.doURL(http.MethodGet, shutdown.URL, "", shutdown.Status, true)
|
this.doURL(http.MethodGet, shutdown.URL, "", shutdown.Status, true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(shutdown.BodyType) == 0 || shutdown.BodyType == shared.BodyTypeURL {
|
|
||||||
// URL为空,则显示文本
|
// URL为空,则显示文本
|
||||||
if len(shutdown.URL) == 0 {
|
if len(shutdown.URL) == 0 {
|
||||||
// 自定义响应Headers
|
// 自定义响应Headers
|
||||||
|
|||||||
Reference in New Issue
Block a user