Skip to content

Commit 5f67e03

Browse files
committed
refactor: simplify content length initialization
1 parent 99895d1 commit 5f67e03

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/h2/stream.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,9 +1380,6 @@ def _initialize_content_length(self, headers: Iterable[Header]) -> None:
13801380
msg = f"Conflicting content-length headers: {content_length} and {parsed_content_length}"
13811381
raise ProtocolError(msg)
13821382

1383-
if content_length is None:
1384-
return
1385-
13861383
self._expected_content_length = content_length
13871384

13881385
def _track_content_length(self, length: int, end_stream: bool) -> None:

0 commit comments

Comments
 (0)