From 97b0d82c92e67fd703fffe77988cc455fcd1e4ae Mon Sep 17 00:00:00 2001 From: maxwell mullin Date: Sun, 29 Dec 2024 17:38:39 -0500 Subject: [PATCH] distinct instance of headers dict --- phew/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phew/server.py b/phew/server.py index 2540e3b..9b30bf9 100644 --- a/phew/server.py +++ b/phew/server.py @@ -62,7 +62,9 @@ def __str__(self): class Response: - def __init__(self, body, status=200, headers={}): + def __init__(self, body, status=200, headers=None): + if headers is None: + headers = {} self.status = status self.headers = headers self.body = body