Skip to content
Myr

Convert DataEvent.data from bytearray to bytes (#182)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Seth Michael Larson · committed by GitHub · parent 40849bf · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/dispatch/http11.py+1 added-1 removed
140 unmodified lines
141 """142 while True:143 event = await self._receive_event(timeout)144 if isinstance(event, h11.Data):145 yield event.data145 yield bytes(event.data)146 else:147 assert isinstance(event, h11.EndOfMessage)148 break149
38 unmodified lines