mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	缓存内容报头时忽略X-Cache
This commit is contained in:
		@@ -1284,7 +1284,7 @@ func (this *HTTPWriter) calculateHeaderLength() (result int) {
 | 
			
		||||
 | 
			
		||||
func (this *HTTPWriter) shouldIgnoreHeader(name string) bool {
 | 
			
		||||
	switch name {
 | 
			
		||||
	case "Set-Cookie", "Strict-Transport-Security", "Alt-Svc", "Upgrade":
 | 
			
		||||
	case "Set-Cookie", "Strict-Transport-Security", "Alt-Svc", "Upgrade", "X-Cache":
 | 
			
		||||
		return true
 | 
			
		||||
	default:
 | 
			
		||||
		return (this.isPartial && name == "Content-Range")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user