admin: use copy for environ api

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-24 11:39:49 +02:00
parent 494af0a430
commit 9733caf3b7

View file

@ -45,7 +45,7 @@ class SystemSerializer(PassiveSerializer):
def get_env(self, request: Request) -> dict[str, str]:
"""Get Environment"""
return os.environ
return os.environ.copy()
def get_http_headers(self, request: Request) -> dict[str, str]:
"""Get HTTP Request headers"""