diff --git a/sanic/response/types.py b/sanic/response/types.py index 0a8af725..b6992934 100644 --- a/sanic/response/types.py +++ b/sanic/response/types.py @@ -106,9 +106,6 @@ class BaseHTTPResponse: Returns: Iterator[Tuple[bytes, bytes]]: A list of header tuples encoded in bytes for sending """ # noqa: E501 - # TODO: Make a blacklist set of header names and then filter with that - if self.status in (304, 412): # Not Modified, Precondition Failed - self.headers = remove_entity_headers(self.headers) if has_message_body(self.status): self.headers.setdefault("content-type", self.content_type) # Encode headers into bytes