Set default value for headers parameter in MicromailClient.headers method
Some checks failed
/ serve (push) Has been cancelled
Some checks failed
/ serve (push) Has been cancelled
This commit is contained in:
parent
02e6f3fbcc
commit
50e1a798f2
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class MicromailClient:
|
|||
|
||||
self.send_command("DATA", code=354)
|
||||
|
||||
def headers(self, headers: dict[str, str]) -> None:
|
||||
def headers(self, headers: dict[str, str] = {}) -> None:
|
||||
date = headers.get("date", format_date(datetime.now(tz=timezone(timedelta()))))
|
||||
self.write(f"Date: {date}\r\n")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue