mirror of
				https://github.com/TeamPiped/piped-proxy.git
				synced 2024-08-14 23:50:45 +00:00 
			
		
		
		
	Merge pull request #170 from TeamPiped/harden-headers
fix: filter out some headers that could leak user information
This commit is contained in:
		
						commit
						8e93dde1b5
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -121,6 +121,9 @@ fn is_header_allowed(header: &str) -> bool {
 | 
				
			||||||
            | "user-agent"
 | 
					            | "user-agent"
 | 
				
			||||||
            | "range"
 | 
					            | "range"
 | 
				
			||||||
            | "transfer-encoding"
 | 
					            | "transfer-encoding"
 | 
				
			||||||
 | 
					            | "x-real-ip"
 | 
				
			||||||
 | 
					            | "origin"
 | 
				
			||||||
 | 
					            | "referer"
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue