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
1 changed files with 1 additions and 1 deletions

View File

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