mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 16:00:25 +08:00 
			
		
		
		
	优化一处注释
This commit is contained in:
		@@ -725,7 +725,7 @@ func (this *HTTPRequest) tryPartialReader(storage caches.StorageInterface, key s
 | 
			
		||||
			r2, findOk := partialReader.Ranges().FindRangeAtPosition(r.Start())
 | 
			
		||||
			if findOk && r2.Length() >= (256<<10) /* worth reading */ {
 | 
			
		||||
				isOk = true
 | 
			
		||||
				ranges[0] = [2]int64{r.Start(), partialReader.BodySize()} // Content-Range: bytes 0-[BODY_LENGTH]
 | 
			
		||||
				ranges[0] = [2]int64{r.Start(), partialReader.BodySize()} // Content-Range: bytes 0-[CONTENT_LENGTH - 1]/CONTENT_LENGTH
 | 
			
		||||
 | 
			
		||||
				pReader.SetNextReader(NewHTTPRequestPartialReader(this, r2.End(), partialReader))
 | 
			
		||||
				return pReader, ranges, r2.End() - 1 /* not include last byte */, true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user