Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion h11/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ def send_with_data_passthrough(self, event: Event) -> Optional[List[bytes]]:
:meth:`send` returns a single :term:`bytes-like object`, this instead
returns a list of them -- and when sending a :class:`Data` event, this
list is guaranteed to contain the exact object you passed in as
:attr:`Data.data`. See :ref:`sendfile` for discussion.
:attr:`Data.data`, except that empty data may be omitted when using
chunked transfer encoding. See :ref:`sendfile` for discussion.

"""
if self.our_state is ERROR:
Expand Down
1 change: 1 addition & 0 deletions newsfragments/217.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that empty data may be omitted by send_with_data_passthrough when chunked transfer encoding is used.