Fix issues with shutdown, improve documentation

This commit is contained in:
2021-03-28 17:12:07 +02:00
parent 210c03b73f
commit 0f2b039e71
3 changed files with 74 additions and 4 deletions

View File

@@ -66,6 +66,9 @@ class AbstractCommand(ABC):
def _build_message(self, status: int, content_type: str, body: bytes, extra_headers=None):
if extra_headers is None:
extra_headers = {}
self._process_conditional_headers()
message = f"HTTP/1.1 {status} {status_message[status]}\r\n"