We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c0a553 commit 07f19f3Copy full SHA for 07f19f3
h11/_readers.py
@@ -245,14 +245,20 @@ def __call__(self, buf):
245
if self._bytes_in_chunk == 0:
246
self._reading_trailer = True
247
return self(buf)
248
+ chunk_start = True
249
+ else:
250
+ chunk_start = False
251
assert self._bytes_in_chunk > 0
252
data = buf.maybe_extract_at_most(self._bytes_in_chunk)
253
if data is None:
254
return None
255
self._bytes_in_chunk -= len(data)
256
257
self._bytes_to_discard = 2
- return Data(data=data)
258
+ chunk_end = True
259
260
+ chunk_end = False
261
+ return Data(data=data, chunk_start=chunk_start, chunk_end=chunk_end)
262
263
264
class Http10Reader(object):
0 commit comments