mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	Tweak media proxy
This commit is contained in:
		| @@ -875,7 +875,14 @@ async def _proxy_get( | ||||
|             (k, v) | ||||
|             for (k, v) in request.headers.raw | ||||
|             if k.lower() | ||||
|             not in [b"host", b"cookie", b"x-forwarded-for", b"x-real-ip", b"user-agent"] | ||||
|             not in [ | ||||
|                 b"host", | ||||
|                 b"cookie", | ||||
|                 b"x-forwarded-for", | ||||
|                 b"x-forwarded-proto", | ||||
|                 b"x-real-ip", | ||||
|                 b"user-agent", | ||||
|             ] | ||||
|         ] | ||||
|         + [(b"user-agent", USER_AGENT.encode())], | ||||
|     ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user