mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	修复当缓存内容为空时无法响应缓存的Bug
This commit is contained in:
		@@ -63,6 +63,7 @@ func (this *FileReader) Init() error {
 | 
			
		||||
	// body
 | 
			
		||||
	bodySize := int(binary.BigEndian.Uint64(buf[SizeExpiresAt+SizeStatus+SizeURLLength+SizeHeaderLength : SizeExpiresAt+SizeStatus+SizeURLLength+SizeHeaderLength+SizeBodyLength]))
 | 
			
		||||
	if bodySize == 0 {
 | 
			
		||||
		isOk = true
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
	this.bodySize = int64(bodySize)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user