Remove/Replace default mitmproxy "Server" header?


I am looking for a way to remove Server header which is attached by mitmproxy automatically.
Tried manually changing it in py script, but it doesnt look like it works.

What I’ve tried so far: “–setheader :~q:Server:tor” appears in the mitmproxy console with the other headers, but is later replaced by mitmproxy on the way to the server.

I’ve also tried doing it with python script, but that was just ignored.