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