mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	修复自定义页面无法保存的问题
This commit is contained in:
		@@ -369,7 +369,7 @@ func (this *HTTPWebService) UpdateHTTPWebShutdown(ctx context.Context, req *pb.U
 | 
			
		||||
			if len(shutdownConfig.URL) > maxURLLength {
 | 
			
		||||
				return nil, errors.New("'url' too long")
 | 
			
		||||
			}
 | 
			
		||||
			if !regexputils.HTTPProtocol.MatchString(shutdownConfig.URL) {
 | 
			
		||||
			if shutdownConfig.IsOn /** validate when it's on **/ && !regexputils.HTTPProtocol.MatchString(shutdownConfig.URL) {
 | 
			
		||||
				return nil, errors.New("invalid 'url' format")
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user